結果
| 問題 | No.5003 物理好きクリッカー |
| コンテスト | |
| ユーザー |
特命ログイン
|
| 提出日時 | 2018-12-11 08:37:27 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 10,000 ms |
| コード長 | 1,969 bytes |
| 記録 | |
| コンパイル時間 | 760 ms |
| 実行使用メモリ | 22,008 KB |
| スコア | 65,160,228,832 |
| 平均クエリ数 | 10000.00 |
| 最終ジャッジ日時 | 2021-07-19 09:20:27 |
| 合計ジャッジ時間 | 4,089 ms |
|
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 32 |
ソースコード
use std::io::*;
const NAMES: [&str; 5] = ["hand", "lily", "factory", "casino", "grimoire"];
fn main() {
let mut output = Vec::with_capacity(3000000);
let xs = [0, 15, 1, 1, 0, 75, 10, 1, 0, 71, 10, 1, 0, 64, 10, 1, 0, 61, 10, 1, 0, 61, 10, 1, 0, 63, 10, 1, 0, 66, 10, 1, 0, 71, 10, 1, 0, 77, 10, 1, 0, 84, 20, 1, 0, 111, 11, 1, 0, 95, 11, 1, 0, 86, 11, 1, 0, 82, 11, 1, 0, 82, 11, 1, 0, 84, 11, 1, 0, 89, 11, 1, 0, 95, 11, 1, 0, 102, 11, 1, 0, 112, 21, 1, 0, 149, 12, 1, 0, 134, 12, 1, 0, 117, 12, 1, 0, 110, 12, 1, 0, 109, 12, 1, 0, 111, 12, 1, 0, 116, 12, 1, 0, 123, 12, 1, 0, 133, 12, 1, 0, 145, 22, 1, 0, 189, 12, 1, 0, 85, 12, 1, 0, 93, 13, 1, 0, 178, 13, 1, 0, 151, 13, 1, 0, 140, 13, 1, 0, 137, 13, 1, 0, 139, 13, 1, 0, 144, 13, 1, 0, 153, 13, 1, 0, 164, 13, 1, 0, 178, 23, 1, 0, 230, 13, 1, 0, 103, 14, 1, 0, 212, 14, 1, 0, 186, 14, 1, 0, 176, 14, 1, 0, 174, 14, 1, 0, 178, 14, 1, 0, 186, 14, 1, 0, 197, 14, 1, 0, 212, 14, 1, 0, 231, 24, 1, 0, 303, 14, 1, 0, 136, 14, 1, 0, 150, 14, 1, 0, 166, 14, 1, 0, 185, 14, 1, 0, 207, 14, 1, 0, 233, 14, 1, 0, 264, 14, 1, 0, 299, 14, 1, 0, 340, 34, 3, 14, 1, 0, 264, 34, 2, 14, 1, 0, 233, 34, 4, 14, 1, 0, 166, 34, 4, 14, 1, 0, 125, 34, 5, 14, 1, 0, 101, 34, 5, 33, 8];
for i in 0..xs.len() / 2 {
let x = xs[i * 2];
let c = xs[i * 2 + 1];
for _ in 0..c {
match x {
0 => writeln!(&mut output, "click").unwrap(),
1 => writeln!(&mut output, "enhclick").unwrap(),
x if x < 20 => writeln!(&mut output, "buy {}", NAMES[x % 10]).unwrap(),
x if x < 30 => writeln!(&mut output, "reinforce {}", NAMES[x % 10]).unwrap(),
x if x < 40 => writeln!(&mut output, "sell {}", NAMES[x % 10]).unwrap(),
_ => {},
}
}
}
let stdout = stdout();
let mut stdout = stdout.lock();
stdout.write_all(&output).unwrap();
stdout.flush().unwrap();
let stdin = stdin();
let stdin = stdin.lock();
let mut lines = stdin.lines();
while let Some(Ok(_)) = lines.next() {
}
}
特命ログイン