結果

問題 No.9010 うるう年判定
ユーザー finefine
提出日時 2017-05-05 01:20:54
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 132 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 11,400 KB
実行使用メモリ 15,384 KB
最終ジャッジ日時 2023-10-12 08:12:23
合計ジャッジ時間 4,263 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 78 ms
15,268 KB
testcase_02 AC 78 ms
15,028 KB
testcase_03 AC 77 ms
15,136 KB
testcase_04 AC 78 ms
15,148 KB
testcase_05 AC 78 ms
15,260 KB
testcase_06 WA -
testcase_07 AC 78 ms
15,132 KB
testcase_08 WA -
testcase_09 AC 78 ms
15,240 KB
testcase_10 AC 77 ms
15,280 KB
testcase_11 WA -
testcase_12 AC 77 ms
15,064 KB
testcase_13 WA -
testcase_14 AC 78 ms
15,336 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 78 ms
15,288 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 78 ms
15,072 KB
testcase_25 WA -
testcase_26 AC 77 ms
15,292 KB
testcase_27 AC 77 ms
15,108 KB
testcase_28 AC 78 ms
15,080 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
if n % 400 == 0
    puts "Yes"
elsif n % 100 == 0
    puts "No"
elsif n % 4 == 0
    puts "Yes"
else
    puts "NO"
end
0