結果
| 問題 |
No.1108 移調
|
| コンテスト | |
| ユーザー |
Strorkis
|
| 提出日時 | 2020-07-10 21:26:04 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 641 bytes |
| コンパイル時間 | 12,541 ms |
| コンパイル使用メモリ | 390,776 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-11 07:39:49 |
| 合計ジャッジ時間 | 13,591 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
fn main() {
let (_n, h): (usize, i32) = {
let mut buf = String::new();
std::io::stdin().read_line(&mut buf).unwrap();
let mut iter = buf.split_whitespace();
(
iter.next().unwrap().parse().unwrap(),
iter.next().unwrap().parse().unwrap(),
)
};
let a: Vec<i32> = {
let mut buf = String::new();
std::io::stdin().read_line(&mut buf).unwrap();
let iter = buf.split_whitespace();
iter.map(|x| x.parse().unwrap()).collect()
};
let ans = a.iter().map(|x| (x + h).to_string()).collect::<Vec<_>>().join(" ");
println!("{}", ans);
}
Strorkis