#include<stdio.h> int f[13] = { 0,31,59,90,120,151,181,212,243,273,304,334,365 }, x, y; char ans[7][5] = { "SUN","MON","TUE","WED","THU","FRI","SAT" }; int main() { scanf("%d%d", &x, &y); printf("%s", ans[(f[x - 1] + y) % 7]); return 0; }
피드 구독하기:
댓글
(
Atom
)
댓글 없음 :
댓글 쓰기