結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2018-10-23 16:55:34 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 13,272 ms |
コンパイル使用メモリ | 397,000 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-19 04:16:04 |
合計ジャッジ時間 | 14,564 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
use std::io::Read;fn main() {let mut buf = String::new();std::io::stdin().read_to_string(&mut buf).unwrap();let mut iter = buf.split_whitespace();let l: usize = iter.next().unwrap().parse().unwrap();let k: usize = iter.next().unwrap().parse().unwrap();println!("{}", l.saturating_sub(1)/2 / k * k);}