結果
| 問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
| コンテスト | |
| ユーザー |
kokosei
|
| 提出日時 | 2024-04-19 21:25:01 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 29 ms / 2,000 ms |
| + 219µs | |
| コード長 | 434 bytes |
| 記録 | |
| コンパイル時間 | 949 ms |
| コンパイル使用メモリ | 165,920 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-14 01:01:22 |
| 合計ジャッジ時間 | 3,226 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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