結果
問題 | No.1986 Yummy |
ユーザー |
![]() |
提出日時 | 2023-02-12 13:59:16 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 12,915 ms |
コンパイル使用メモリ | 394,164 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-16 05:19:11 |
合計ジャッジ時間 | 13,578 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 24 |
ソースコード
fn main() {let mut s = String::new();std::io::stdin().read_line(&mut s).ok();let n: usize = s.trim().parse().unwrap();println!("{}",if n % 2 == 0 { n / 2 }else { 1 })}