結果
| 問題 |
No.2647 [Cherry 6th Tune A] Wind
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-23 21:34:02 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 745 bytes |
| コンパイル時間 | 14,035 ms |
| コンパイル使用メモリ | 382,144 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-09-29 05:42:03 |
| 合計ジャッジ時間 | 11,929 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 8 |
コンパイルメッセージ
warning: unused variable: `d` --> src/main.rs:10:13 | 10 | let d = temp[0]; | ^ help: if this is intentional, prefix it with an underscore: `_d` | = note: `#[warn(unused_variables)]` on by default
ソースコード
fn main() {
let mut t = String::new();
std::io::stdin().read_line(&mut t).ok();
let t: usize = t.trim().parse().unwrap();
for _ in 0..t {
let mut temp = String::new();
std::io::stdin().read_line(&mut temp).ok();
let temp: Vec<usize> = temp.trim().split_whitespace().map(|s| s.parse().unwrap()).collect();
let d = temp[0];
let a = temp[1];
let mut x = String::new();
std::io::stdin().read_line(&mut x).ok();
let x: Vec<usize> = x.trim().split_whitespace().map(|s| s.parse().unwrap()).collect();
let ret = x.into_iter().map(|v| (v as f64 / a as f64).round() as usize).map(|v| v.to_string()).collect::<Vec<_>>();
println!("{}", ret.join(" "));
}
}