結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
コンテスト
ユーザー Caiiiiiiii
提出日時 2024-04-19 21:25:25
言語 C++17
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 342 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,304 ms
コンパイル使用メモリ 217,812 KB
実行使用メモリ 12,020 KB
最終ジャッジ日時 2026-07-04 12:38:47
合計ジャッジ時間 2,869 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>

typedef long long LL;

const int N = 2e5 + 7;
const int MOD = 998244353;

int n, m;

int main() {

  scanf("%d", &n);

  std::vector<int> a(n);
  for(int &v: a)
    scanf("%d", &v);

  std::sort(a.begin(), a.end());

  int x = 0;
  for(int v: a)
    x = (10LL * x + v) % MOD;

  printf("%d\n", x);
  
  return 0;

}
0