結果
問題 | No.2699 Simple Math (Returned) |
ユーザー |
|
提出日時 | 2024-11-09 15:18:10 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 4,237 ms |
コンパイル使用メモリ | 252,120 KB |
最終ジャッジ日時 | 2025-02-25 03:18:41 |
ジャッジサーバーID (参考情報) |
judge2 / 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; } }