結果
| 問題 | No.2699 Simple Math (Returned) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-29 21:33:02 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 258 bytes |
| 記録 | |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 84,608 KB |
| 実行使用メモリ | 245,016 KB |
| 最終ジャッジ日時 | 2026-04-16 18:22:23 |
| 合計ジャッジ時間 | 4,374 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)