結果
問題 |
No.779 Heisei
|
ユーザー |
![]() |
提出日時 | 2019-01-31 22:27:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 491 bytes |
コンパイル時間 | 1,486 ms |
コンパイル使用メモリ | 165,444 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 15:20:17 |
合計ジャッジ時間 | 2,306 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 WA * 10 |
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:9:30: warning: left shift count >= width of type [-Wshift-count-overflow] 9 | if ((1988 < y) && (y << 2020)) { | ~~^~~~~~~
ソースコード
#include "bits/stdc++.h" using namespace std; signed main() { int y, m, d; cin >> y >> m >> d; if ((1988 < y) && (y << 2020)) { if ((1989 < y) && (y < 2019)) { cout << "Yes" << endl; return 0; } if (y == 1989) { if (1 < m) { cout << "Yes" << endl; return 0; } if (1 == m && 7 < d) { cout << "Yes" << endl; return 0; } } if (y == 2019) { if (m < 5) { cout << "Yes" << endl; return 0; } } } cout << "No" << endl; return 0; }