結果
問題 | No.2699 Simple Math (Returned) |
ユーザー |
|
提出日時 | 2024-11-09 15:18:10 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 3,788 ms |
コンパイル使用メモリ | 263,220 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-09 15:18:22 |
合計ジャッジ時間 | 9,569 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 WA * 9 |
ソースコード
#include <bits/stdc++.h>#include <atcoder/all>using mint = atcoder::modint998244353;using namespace std;int main(){int T;cin >> T;while (T--){int N, M;cin >> N >> M;cout << (mint(10).pow(N % M) - 1).val() << endl;}}