結果
| 問題 |
No.1130 Grid Numbers
|
| ユーザー |
ixTL255
|
| 提出日時 | 2023-01-03 01:37:54 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 494 bytes |
| コンパイル時間 | 11,384 ms |
| コンパイル使用メモリ | 378,880 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 01:34:33 |
| 合計ジャッジ時間 | 12,297 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 12 |
ソースコード
use std::io::Read;
fn main() {
let mut s = String::new();
std::io::stdin().read_to_string(&mut s).ok();
let mut s = s.trim().split_whitespace();
let h: usize = s.next().unwrap().parse().unwrap();
let w: usize = s.next().unwrap().parse().unwrap();
let mut a: Vec<usize> = s.map(|e| e.parse().unwrap()).collect();
a.sort();
let mut ans = String::new();
for i in 0..h * w {
ans += &a[i].to_string();
ans += " ";
if (i + 1) % w == 0 { ans += "\r\n" }
}
println!("{}", ans);
}
ixTL255