結果
問題 |
No.2699 Simple Math (Returned)
|
ユーザー |
|
提出日時 | 2024-03-29 23:33:52 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 772 ms / 2,000 ms |
コード長 | 175 bytes |
コンパイル時間 | 579 ms |
コンパイル使用メモリ | 82,124 KB |
実行使用メモリ | 76,800 KB |
最終ジャッジ日時 | 2024-09-30 17:03:15 |
合計ジャッジ時間 | 9,485 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 11 |
ソースコード
t=int(input()) M=998244353 for _ in range(t): n,m=map(int,input().split()) n%=2*m if n<=m: ans=pow(10,n,M)-1 else: ans=pow(10,m,M)-pow(10,n-m,M) print(ans%M)