結果

問題 No.2699 Simple Math (Returned)
ユーザー Ekiben542Ekiben542
提出日時 2024-03-29 21:33:02
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 258 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 202,548 KB
最終ジャッジ日時 2024-03-29 21:33:06
合計ジャッジ時間 4,311 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
60,264 KB
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0