結果
| 問題 | No.2647 [Cherry 6th Tune A] Wind |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-23 21:34:02 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 745 bytes |
| 記録 | |
| コンパイル時間 | 5,214 ms |
| コンパイル使用メモリ | 197,284 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-15 16:10:47 |
| 合計ジャッジ時間 | 4,014 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)]` (part of `#[warn(unused)]`) 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(" "));
}
}