結果
| 問題 |
No.1926 Sequence of Remainders
|
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2022-05-06 21:27:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 2,000 ms |
| コード長 | 207 bytes |
| コンパイル時間 | 250 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 78,832 KB |
| 最終ジャッジ日時 | 2024-07-05 22:33:33 |
| 合計ジャッジ時間 | 6,124 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 35 |
ソースコード
import sys
input=sys.stdin.readline
write=sys.stdout.write
T=int(input())
Ans=[0]*T
for t in range(T):
N,M,K=map(int,input().split())
if K%M<M-N:
Ans[t]=K%M
write("\n".join(map(str,Ans)))
Kazun