結果
問題 | No.9010 うるう年判定 |
ユーザー |
|
提出日時 | 2024-09-20 20:04:17 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 104 bytes |
コンパイル時間 | 2,854 ms |
コンパイル使用メモリ | 242,856 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-20 20:04:22 |
合計ジャッジ時間 | 4,245 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 21 WA * 4 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<bits/stdc++.h> | ^~~~~~ main.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | main(int n){std::cin>>n;std::cout<<(std::chrono::year{n}.is_leap()? "Yes":"No");} | ^~~~ main.cpp:2:1: warning: 'int main(int)' takes only zero or two arguments [-Wmain]
ソースコード
#import<bits/stdc++.h>main(int n){std::cin>>n;std::cout<<(std::chrono::year{n}.is_leap()? "Yes":"No");}