結果
| 問題 |
No.779 Heisei
|
| コンテスト | |
| ユーザー |
yui
|
| 提出日時 | 2019-01-31 22:25:51 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 479 bytes |
| コンパイル時間 | 1,517 ms |
| コンパイル使用メモリ | 164,704 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-17 15:15:35 |
| 合計ジャッジ時間 | 2,331 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
return 0;
}
yui