题解 | 开学?
开学?
https://www.nowcoder.com/practice/9cc35bd0754f4feca18e10e57c672467
using System;
public class Program {
public static void Main() {
string[] str = Console.ReadLine().Split();
int x = int.Parse(str[0]);
int n = int.Parse(str[1]);
int x1 = (x + n) % 7 == 0 ? 7 : (x + n) % 7;
Console.WriteLine(x1);
}
}

查看20道真题和解析