题解 | #开学?#
开学?
http://www.nowcoder.com/practice/9cc35bd0754f4feca18e10e57c672467
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int weekDay = scanner.nextInt();
int days = scanner.nextInt();
System.out.print((weekDay + days) % 7 == 0 ? 7 : (weekDay + days) % 7);
}
}
查看6道真题和解析