結果

問題 No.63 ポッキーゲーム
ユーザー _Clay____
提出日時 2018-10-20 20:49:53
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 284 bytes
コンパイル時間 13,116 ms
コンパイル使用メモリ 377,848 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-19 02:50:29
合計ジャッジ時間 13,850 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io::*;
fn main() {
  let s = stdin();
  let mut buf = String::new();
  s.read_line(&mut buf).ok();
  let l: Vec<u32> = buf
    .trim()
    .split_whitespace()
    .map(|e| e.parse().ok().unwrap())
    .collect();
  let (l, k) = (l[0], l[1]);
  println!("{}",(l-1)/(k*2)*k);
}
0