3 条题解

  • 1
    @ 2024-5-27 19:21:35
    # 读取当前星期数(星期一至星期日,用1至7表示)
    x = int(input())
    # 读取从今天起到钓龙虾那天的天数
    n = int(input())
    # 计算N天后是星期几,利用模运算定位星期周期,再作适当的调整匹配定义的星期数范围(1到7)
    print((x + n - 1) % 7 + 1)
    
    • @ 2024-5-28 9:16:02

      卜是,我还在补题,宁就把题解发完了😕

  • 0
    @ 2024-6-4 9:36:58

    我不管了啦

    print((int(input()) + int(input()) - 1) % 7 + 1)
    
    • 0
      @ 2024-5-29 19:24:16
      n = int(input())
      s = int(input())
      
      p = (n+s-1)%7+1
      print(p)
      
      • 1

      信息

      ID
      930
      时间
      1000ms
      内存
      256MiB
      难度
      4
      标签
      递交数
      825
      已通过
      393
      上传者