結果
| 問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
| コンテスト | |
| ユーザー |
rotti_coder
|
| 提出日時 | 2024-04-19 21:27:17 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 106 ms / 2,000 ms |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 481 ms |
| コンパイル使用メモリ | 100,260 KB |
| 実行使用メモリ | 11,968 KB |
| 最終ジャッジ日時 | 2026-07-04 12:40:21 |
| 合計ジャッジ時間 | 2,869 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
int n;
cin >> n;
vector<long long>a(n);
for(int i=0;i<n;i++)cin >> a[i];
sort(a.begin(),a.end());
long long x=0,mod=998244353;
for(int i=0;i<n;i++){
x*=10;
x+=a[i];
x%=mod;
}
cout << x << endl;
}
rotti_coder