結果

問題 No.9010 うるう年判定
ユーザー triggerwaffle
提出日時 2020-09-22 13:25:59
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 310 bytes
コンパイル時間 18,497 ms
コンパイル使用メモリ 389,276 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-26 01:33:17
合計ジャッジ時間 13,291 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;
use proconio::fastout;
#[allow(unused_imports)]
use proconio::marker::*;

#[fastout]
fn main(){
    input! {
        n: i32,
    }
 print!("{}", if n%400==0 {
         "Yes"
     }else if n %100==0{
         "No"
     }else if n %4==0{
         "Yes"
     }else{
         "No"
     }
 )
}
0