結果
| 問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
| コンテスト | |
| ユーザー |
otamay6
|
| 提出日時 | 2024-04-20 17:33:21 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 329 bytes |
| 記録 | |
| コンパイル時間 | 517 ms |
| コンパイル使用メモリ | 100,280 KB |
| 実行使用メモリ | 12,024 KB |
| 最終ジャッジ日時 | 2026-07-04 14:33:50 |
| 合計ジャッジ時間 | 1,779 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 WA * 13 |
ソースコード
#include<iostream>
#include<vector>
#include <string>
#include<algorithm>
constexpr long long mod = 998244353;
int main(){
int n;std::cin>>n;
std::vector<int> 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