結果
問題 |
No.9010 うるう年判定
|
ユーザー |
![]() |
提出日時 | 2017-04-24 01:33:32 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 170 bytes |
コンパイル時間 | 1,071 ms |
コンパイル使用メモリ | 54,044 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-22 10:23:42 |
合計ジャッジ時間 | 2,135 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 17 WA * 8 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:8:9: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d",&N); | ~~~~~^~~~~~~~~
ソースコード
#include <iostream> using namespace std; bool is_uruu(int N){ return !(N%4 || (N/100)%4); } signed main() {int N; scanf("%d",&N); puts(is_uruu(N)?"Yes":"No"); }