백준알고리즘
-
1924번백준알고리즘/입출력 2020. 10. 2. 14:21
#include #include using namespace std; int main() { string day[7] = { "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT" }; int month[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; int tmp = 0; int x, y; cin >> x >> y; for (int i = 0; i < x-1; i++) { y = y + month[i]; } tmp = y % 7; cout