結果
問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
ユーザー |
|
提出日時 | 2024-04-19 23:03:27 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 155 ms / 2,000 ms |
コード長 | 352 bytes |
コンパイル時間 | 1,447 ms |
コンパイル使用メモリ | 111,896 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 17:11:47 |
合計ジャッジ時間 | 4,679 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <atcoder/modint> typedef atcoder::modint998244353 mint; int main() { int n; std::cin >> n; std::vector<int64_t> a(n); for(auto &el: a) { std::cin >> el; } std::ranges::sort(a); mint res = 0; for(const auto &x: a) { res = 10 * res + x; } std::cout << res.val() << '\n'; }