結果
| 問題 |
No.2729 Addition and Multiplication in yukicoder (Easy)
|
| コンテスト | |
| ユーザー |
かもめのうで
|
| 提出日時 | 2024-04-20 00:47:04 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 301 bytes |
| コンパイル時間 | 14,809 ms |
| コンパイル使用メモリ | 379,204 KB |
| 実行使用メモリ | 7,936 KB |
| 最終ジャッジ日時 | 2024-10-11 19:39:57 |
| 合計ジャッジ時間 | 16,993 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#![allow(unused)]
use proconio::*;
use std::collections::*;
fn main() {
input! {
n: usize,
mut a: [usize; n]
}
let modulo = 998244353;
a.sort();
let mut x = 0;
for i in 0..n {
x *= 10;
x += a[i];
x %= modulo;
}
println!("{x}")
}
かもめのうで