結果
| 問題 |
No.2729 Addition and Multiplication in yukicoder (Easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-03 14:32:20 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 455 bytes |
| コンパイル時間 | 4,150 ms |
| コンパイル使用メモリ | 253,352 KB |
| 最終ジャッジ日時 | 2025-02-21 10:45:52 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 WA * 13 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#include<atcoder/all>
using namespace atcoder;
using ll = long long;
using mint = modint998244353;
int n;
vector<int> a;
void solve(){
sort(a.begin(),a.end());
mint ans = 0;
for(int i = 0; i < n; ++i){
ans = ans*10 + a[i];
}
cout<<ans.val()<<endl;
}
signed main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
cin >> n;
a = vector<int>(n);
for(int i = 0; i < n; ++i) cin >> a[i];
solve();
}