結果
| 問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-19 21:25:25 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 342 bytes |
| 記録 | |
| コンパイル時間 | 1,304 ms |
| コンパイル使用メモリ | 217,812 KB |
| 実行使用メモリ | 12,020 KB |
| 最終ジャッジ日時 | 2026-07-04 12:38:47 |
| 合計ジャッジ時間 | 2,869 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 WA * 13 |
ソースコード
#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<int> a(n);
for(int &v: a)
scanf("%d", &v);
std::sort(a.begin(), a.end());
int x = 0;
for(int v: a)
x = (10LL * x + v) % MOD;
printf("%d\n", x);
return 0;
}