結果
問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
ユーザー |
|
提出日時 | 2024-04-19 21:27:50 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 56 ms / 2,000 ms |
コード長 | 341 bytes |
コンパイル時間 | 1,892 ms |
コンパイル使用メモリ | 170,952 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 14:00:03 |
合計ジャッジ時間 | 3,603 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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;}