結果
| 問題 |
No.2734 Addition and Multiplication in yukicoder (Hard)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-17 00:32:38 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 483 bytes |
| コンパイル時間 | 2,097 ms |
| コンパイル使用メモリ | 204,112 KB |
| 最終ジャッジ日時 | 2025-02-24 08:59:55 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 RE * 9 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int N;
cin>>N;
vector<string> S(N);
for(int i=0;i<N;i++)cin>>S[i];
sort(S.begin(),S.end(),[](auto const&L,auto const& R){
if(L+R<=R+L)return true;
else return false;
});
string T="";
for(int i=0;i<N;i++)T+=S[i];
ll an=0;
for(auto t:T)an=(10*an+t-'0')%998244353;
cout<<an<<endl;
}