結果
| 問題 |
No.2729 Addition and Multiplication in yukicoder (Easy)
|
| ユーザー |
otamay6
|
| 提出日時 | 2024-04-20 17:34:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 177 ms / 2,000 ms |
| コード長 | 335 bytes |
| コンパイル時間 | 785 ms |
| コンパイル使用メモリ | 79,100 KB |
| 最終ジャッジ日時 | 2025-02-21 07:04:51 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include<iostream>
#include<vector>
#include <string>
#include<algorithm>
constexpr long long mod = 998244353;
int main(){
int n;std::cin>>n;
std::vector<long long> a(n);
for(auto& a: a){
std::cin>>a;
}
std::sort(a.begin(), a.end());
long long x = 0;
for(auto a: a){
x = (10*x + a) % mod;
}
std::cout << x << std::endl;
}
otamay6