結果
問題 | No.1986 Yummy |
ユーザー |
|
提出日時 | 2022-09-10 00:34:10 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 13,585 ms |
コンパイル使用メモリ | 376,892 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-26 01:16:52 |
合計ジャッジ時間 | 14,930 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 24 |
ソースコード
fn main() {let mut n = String::new();std::io::stdin().read_line(&mut n).ok();let n: usize = n.trim().parse().unwrap();if n % 2 == 0 {println!("{}", n/2);} else {println!("{}", 1);}}