結果
| 問題 |
No.779 Heisei
|
| コンテスト | |
| ユーザー |
yui
|
| 提出日時 | 2019-01-31 22:24:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 497 bytes |
| コンパイル時間 | 1,604 ms |
| コンパイル使用メモリ | 165,324 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 15:13:22 |
| 合計ジャッジ時間 | 1,884 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 10 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:9:25: 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;
system("pause");
return 0;
}
yui