結果
| 問題 |
No.9010 うるう年判定
|
| ユーザー |
|
| 提出日時 | 2024-09-20 20:07:12 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 96 bytes |
| コンパイル時間 | 721 ms |
| コンパイル使用メモリ | 76,748 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-20 20:07:15 |
| 合計ジャッジ時間 | 1,534 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<iostream>
| ^~~~~~
main.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main(int y){std::cin>>y;std::cout<<(y%4==0&&(y%100!=0||y%400==0)?"Yes":"No");}
| ^~~~
main.cpp:2:1: warning: 'int main(int)' takes only zero or two arguments [-Wmain]
ソースコード
#import<iostream>
main(int y){std::cin>>y;std::cout<<(y%4==0&&(y%100!=0||y%400==0)?"Yes":"No");}