結果

問題 No.2699 Simple Math (Returned)
ユーザー hirayuu_ychirayuu_yc
提出日時 2024-02-06 16:08:33
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 190 bytes
コンパイル時間 381 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 191,616 KB
最終ジャッジ日時 2024-02-06 16:08:40
合計ジャッジ時間 7,238 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

T=int(input())
for i in range(T):
	N,M=map(int,input().split())
	N%=M*2
	if N<=M:
		print((pow(10,N,998244353)-1)%998244353)
	else:
		print((pow(10,M*2-N,998244353)-1)*pow(10,N-M)%998244353)
0