結果
問題 |
No.46 はじめのn歩
|
ユーザー |
|
提出日時 | 2022-11-15 22:42:44 |
言語 | Rust (1.83.0 + proconio) |
結果 |
RE
|
実行時間 | - |
コード長 | 406 bytes |
コンパイル時間 | 12,704 ms |
コンパイル使用メモリ | 379,780 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-16 21:25:17 |
合計ジャッジ時間 | 13,601 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 10 |
ソースコード
fn getline() -> String { let mut a = String::new(); std::io::stdin().read_line(&mut a).ok(); return a; } fn main() { let a = getline().trim().parse::<i32>().unwrap(); let b = getline().trim().parse::<i32>().unwrap(); let quatient = b / a; let reminder = b % a; if reminder == 0 { println!("{}", quatient); } else { println!("{}", quatient + 1); } }