题解 | 开学?
#include <stdio.h> int main() { int sta=0,again=0,end=0; scanf("%d %d",&sta,&again); end=again%7+sta; if(end<=7) { printf("%d",end); } else if(end>7) { printf("%d",end%7); } return 0; }
#include <stdio.h> int main() { int sta=0,again=0,end=0; scanf("%d %d",&sta,&again); end=again%7+sta; if(end<=7) { printf("%d",end); } else if(end>7) { printf("%d",end%7); } return 0; }
相关推荐