Search

날짜 계산

Created
2021/03/23 01:58
문제 번호
1476
카테고리
수학

Memo

Code

제출 날짜

@8/12/2019

메모리

1988 KB

시간

0 ms
#include <iostream> using namespace std; int main(){ int E, S, M; int count = 0; cin >> E >> S >> M; while(1){ count++; if(!((count - E) % 15 || (count - S) % 28 || (count - M) % 19)) break; } cout << count << "\n"; return 0; }
C++
복사