結果
| 問題 |
No.570 3人兄弟(その1)
|
| コンテスト | |
| ユーザー |
cra77756176
|
| 提出日時 | 2022-12-07 22:59:55 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 439 bytes |
| コンパイル時間 | 14,270 ms |
| コンパイル使用メモリ | 376,664 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-14 02:27:21 |
| 合計ジャッジ時間 | 14,874 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
ソースコード
fn main() {
let mut input = String::new();
std::io::Read::read_to_string(&mut std::io::stdin(), &mut input).ok();
let input: Vec<u64> = input
.split_whitespace()
.map(|n| n.parse().unwrap())
.collect();
let mut abc: Vec<_> = ['A', 'B', 'C'].into_iter().zip(&input[..]).collect();
abc.sort_unstable_by_key(|&(_, h)| h);
for &(p, _) in abc.iter().rev() {
println!("{}", p);
}
}
cra77756176