結果

問題 No.2699 Simple Math (Returned)
ユーザー aa
提出日時 2024-03-29 21:21:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 131 bytes
コンパイル時間 913 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 817,748 KB
最終ジャッジ日時 2024-03-29 21:21:47
合計ジャッジ時間 11,583 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

for _ in range(int(input())):
	n,m=map(int,input().split())
	if n%(2*m)==0:
		print(0)
	else:
		print(int('9'*(n%(2*m)))%998244353)
0