結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー VvyLwVvyLw
提出日時 2024-04-19 23:03:27
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 163 ms / 2,000 ms
コード長 352 bytes
コンパイル時間 1,330 ms
コンパイル使用メモリ 112,464 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-19 23:03:37
合計ジャッジ時間 3,994 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 138 ms
5,376 KB
testcase_03 AC 78 ms
5,376 KB
testcase_04 AC 76 ms
5,376 KB
testcase_05 AC 81 ms
5,376 KB
testcase_06 AC 163 ms
5,376 KB
testcase_07 AC 104 ms
5,376 KB
testcase_08 AC 138 ms
5,376 KB
testcase_09 AC 2 ms
5,376 KB
testcase_10 AC 2 ms
5,376 KB
testcase_11 AC 1 ms
5,376 KB
testcase_12 AC 142 ms
5,376 KB
testcase_13 AC 141 ms
5,376 KB
testcase_14 AC 141 ms
5,376 KB
testcase_15 AC 163 ms
5,376 KB
testcase_16 AC 99 ms
5,376 KB
testcase_17 AC 122 ms
5,376 KB
testcase_18 AC 123 ms
5,376 KB
testcase_19 AC 99 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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';
}
0