题解 | 明天星期几?
明天星期几?
https://www.nowcoder.com/practice/9db9e3d19cde405ba94db09ed1c5f3f3
#include <iostream>
using namespace std;
int main() {
int d;
scanf("%d", &d);
printf("%d", d == 7 ? 1 : d + 1);
}
明天星期几?
https://www.nowcoder.com/practice/9db9e3d19cde405ba94db09ed1c5f3f3
#include <iostream>
using namespace std;
int main() {
int d;
scanf("%d", &d);
printf("%d", d == 7 ? 1 : d + 1);
}
相关推荐