結果
問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
ユーザー |
|
提出日時 | 2024-08-04 22:08:52 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 36 ms / 2,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 12,622 ms |
コンパイル使用メモリ | 398,392 KB |
実行使用メモリ | 7,936 KB |
最終ジャッジ日時 | 2024-08-04 22:09:41 |
合計ジャッジ時間 | 14,868 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
use std::io::Read;fn main() {let mut s = String::new();std::io::stdin().read_to_string(&mut s).ok();let mut v: Vec<u64> =s.split_whitespace().skip(1).flat_map(str::parse).collect();v.sort();println!("{}", v.iter().fold(0, |a, &x| (10 * a + x) % 998244353))}