結果
| 問題 |
No.2699 Simple Math (Returned)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-29 21:33:02 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 258 bytes |
| コンパイル時間 | 223 ms |
| コンパイル使用メモリ | 82,324 KB |
| 実行使用メモリ | 202,880 KB |
| 最終ジャッジ日時 | 2024-09-30 15:40:05 |
| 合計ジャッジ時間 | 4,130 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | TLE * 1 -- * 10 |
ソースコード
def calculate_ten_powers(N, M):
result_N = 10**N - 1
result_M = 10**M - 1
return result_N % result_M % 998244353
T = int(input())
for _ in range(T):
N, M = map(int, input().split())
result = calculate_ten_powers(N, M)
print(result)