結果
| 問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-19 21:27:50 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 34 ms / 2,000 ms |
| + 471µs | |
| コード長 | 341 bytes |
| 記録 | |
| コンパイル時間 | 943 ms |
| コンパイル使用メモリ | 186,116 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-09-14 01:05:59 |
| 合計ジャッジ時間 | 4,778 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <bits/stdc++.h>
typedef long long LL;
const int N = 2e5 + 7;
const int MOD = 998244353;
int n, m;
int main() {
scanf("%d", &n);
std::vector<LL> a(n);
for(LL &v: a)
scanf("%lld", &v);
std::sort(a.begin(), a.end());
int x = 0;
for(LL v: a)
x = (10LL * x + v) % MOD;
printf("%d\n", x);
return 0;
}