結果
| 問題 |
No.2729 Addition and Multiplication in yukicoder (Easy)
|
| コンテスト | |
| ユーザー |
kokosei
|
| 提出日時 | 2024-04-19 21:25:01 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| コード長 | 434 bytes |
| コンパイル時間 | 1,050 ms |
| コンパイル使用メモリ | 92,980 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-11 13:52:12 |
| 合計ジャッジ時間 | 2,670 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <iostream>
#include <algorithm>
#include <atcoder/modint>
using namespace std;
using ll = long long;
int N;
ll A[202020];
int main(void){
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> N;
for(int i = 0;i < N;i++)cin >> A[i];
sort(A, A + N);
atcoder::modint998244353 ans = 0;
for(int i = 0;i < N;i++){
ans = ans * 10 + A[i];
}
cout << ans.val() << endl;
return 0;
}
kokosei