結果
| 問題 |
No.1686 Geschenkt
|
| コンテスト | |
| ユーザー |
cra77756176
|
| 提出日時 | 2022-12-27 20:59:24 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 307 bytes |
| コンパイル時間 | 13,139 ms |
| コンパイル使用メモリ | 379,240 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-22 07:38:44 |
| 合計ジャッジ時間 | 14,247 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
fn main() {
let mut xx = String::new();
std::io::Read::read_to_string(&mut std::io::stdin(), &mut xx).ok();
let xx: Vec<u64> = xx.split_whitespace().skip(1).flat_map(str::parse).collect();
let score = xx.iter().filter(|&&n| !xx.contains(&(n - 1))).sum::<u64>();
println!("{score}");
}
cra77756176