結果
| 問題 | No.2699 Simple Math (Returned) |
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2024-07-17 07:30:49 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 153 bytes |
| 記録 | |
| コンパイル時間 | 444 ms |
| コンパイル使用メモリ | 20,656 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-31 22:54:52 |
| 合計ジャッジ時間 | 20,830 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 WA * 9 |
ソースコード
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