結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
Maricom_tkg
|
| 提出日時 | 2018-10-23 16:53:44 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 349 bytes |
| コンパイル時間 | 11,076 ms |
| コンパイル使用メモリ | 400,124 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-19 04:15:48 |
| 合計ジャッジ時間 | 12,039 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 5 |
ソースコード
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/2).saturating_sub(1) / k * k);
}
Maricom_tkg