結果

問題 No.9010 うるう年判定
ユーザー torus711
提出日時 2019-11-30 14:09:36
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 291 bytes
コンパイル時間 1,930 ms
コンパイル使用メモリ 146,248 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-16 10:13:17
合計ジャッジ時間 2,786 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

func is_uruu( n :int ) :bool
    if ( n % 400 = 0 )
        ret true
    elif ( n % 100 = 0 )
        ret false
    elif ( n % 4 = 0 )
        ret true
    end if
    ret false
end func

func main()
    var n :int :: cui@inputInt()
    do cui@print( @is_uruu( n ) ?( "Yes", "No" ) )
end func
0