結果
問題 |
No.1926 Sequence of Remainders
|
ユーザー |
|
提出日時 | 2022-05-08 08:07:12 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 302 ms / 2,000 ms |
コード長 | 211 bytes |
コンパイル時間 | 188 ms |
コンパイル使用メモリ | 82,108 KB |
実行使用メモリ | 77,056 KB |
最終ジャッジ日時 | 2024-07-07 18:13:23 |
合計ジャッジ時間 | 15,805 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 35 |
ソースコード
T = int(input()) def calc(n,m,k): k %= m last = m - n if k < last: return k else: return 0 for _ in range(T): n,m,k = map(int,input().split()) print(calc(n,m,k))