結果
| 問題 |
No.2699 Simple Math (Returned)
|
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2024-07-17 07:30:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 153 bytes |
| コンパイル時間 | 118 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-17 07:31:14 |
| 合計ジャッジ時間 | 24,592 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 WA * 3 TLE * 7 |
ソースコード
T=int(input())
mod=998244353
for t in range(T):
N,M=map(int,input().split())
c,r=divmod(N,M)
ans=((-1)**c*pow(10,r,mod)-1)%mod
print(ans)
vwxyz