結果
| 問題 |
No.1926 Sequence of Remainders
|
| コンテスト | |
| ユーザー |
june19312
|
| 提出日時 | 2022-05-10 17:09:04 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 325 ms / 2,000 ms |
| コード長 | 162 bytes |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 82,240 KB |
| 実行使用メモリ | 77,068 KB |
| 最終ジャッジ日時 | 2024-07-17 23:30:06 |
| 合計ジャッジ時間 | 16,650 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 35 |
ソースコード
T = int(input())
for i in range(T):
N,M,K = map(int,input().split())
tmp = K%M
a = M-N
if a>tmp:
print(tmp)
else:
print(0)
june19312