結果

問題 No.815 Are you a traveller ?
ユーザー conf8o
提出日時 2020-02-19 17:29:27
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 13,554 ms
コンパイル使用メモリ 390,224 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-08 07:28:57
合計ジャッジ時間 13,193 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut n = String::new();
    std::io::stdin().read_line(&mut n).ok();
    let n: i32 = n.trim().parse().unwrap();
    println!("{}", if n % 2 == 0 { n / 2 } else { n / 2 + 1});
}
0