結果
| 問題 |
No.2729 Addition and Multiplication in yukicoder (Easy)
|
| コンテスト | |
| ユーザー |
manabeai
|
| 提出日時 | 2024-04-19 21:31:35 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 175 ms / 2,000 ms |
| コード長 | 432 bytes |
| コンパイル時間 | 4,530 ms |
| コンパイル使用メモリ | 254,256 KB |
| 最終ジャッジ日時 | 2025-02-21 03:46:53 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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