結果
| 問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
| コンテスト | |
| ユーザー |
manabeai
|
| 提出日時 | 2024-04-19 21:31:35 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 107 ms / 2,000 ms |
| コード長 | 432 bytes |
| 記録 | |
| コンパイル時間 | 2,733 ms |
| コンパイル使用メモリ | 279,512 KB |
| 実行使用メモリ | 11,948 KB |
| 最終ジャッジ日時 | 2026-07-04 12:42:24 |
| 合計ジャッジ時間 | 5,130 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <atcoder/all>
#include <bits/stdc++.h>
using namespace std;
using namespace atcoder;
typedef long long ll;
void solve() {
ll n;
cin >> n;
vector<ll> A(n);
for (ll i = 0; i < n; ++i) cin >> A[i];
sort(A.begin(), A.end());
modint998244353 x = 0;
for (ll i = 0; i < n; ++i) {
x *= 10;
x += A[i];
}
cout << x.val() << endl;
}
int main() {
solve();
return 0;
}
manabeai