結果
| 問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
| コンテスト | |
| ユーザー |
かもめのうで
|
| 提出日時 | 2024-04-20 00:47:04 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 18 ms / 2,000 ms |
| + 699µs | |
| コード長 | 301 bytes |
| 記録 | |
| コンパイル時間 | 638 ms |
| コンパイル使用メモリ | 183,988 KB |
| 実行使用メモリ | 9,216 KB |
| 最終ジャッジ日時 | 2026-09-14 04:56:18 |
| 合計ジャッジ時間 | 4,309 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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}")
}
かもめのうで