結果

問題 No.63 ポッキーゲーム
コンテスト
ユーザー _Clay____
提出日時 2018-10-20 20:48:39
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
RE  
実行時間 -
コード長 284 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,370 ms
コンパイル使用メモリ 186,300 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-05-13 11:17:46
合計ジャッジ時間 2,064 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use std::io::*;
fn main() {
  let s = stdin();
  let mut buf = String::new();
  s.read_line(&mut buf).ok();
  let l: Vec<u16> = 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