結果
| 問題 |
No.2729 Addition and Multiplication in yukicoder (Easy)
|
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2024-07-12 14:47:58 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 182 ms / 2,000 ms |
| コード長 | 360 bytes |
| コンパイル時間 | 2,073 ms |
| コンパイル使用メモリ | 174,444 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-12 14:48:05 |
| 合計ジャッジ時間 | 6,777 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/modint>
using namespace atcoder;
using mint = modint;
using ll = long long;
#define rep(i, n) for(int i = 0; i < n; i++)
int main() {
int N;
cin >> N;
vector<ll> a(N);
rep(i, N) cin >> a[i];
sort(a.begin(), a.end());
mint x = 0;
rep(i, N) x = x * 10 + a[i];
cout << x.val() << endl;
}
forest3