結果
問題 | No.1926 Sequence of Remainders |
ユーザー | akasia_midori |
提出日時 | 2022-05-06 21:28:40 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 353 ms / 2,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 82,688 KB |
実行使用メモリ | 77,568 KB |
最終ジャッジ日時 | 2024-07-05 22:36:52 |
合計ジャッジ時間 | 14,021 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 35 |
ソースコード
def one_str(): return input() def many_int(): return list(map(int, input().split())) input_count = 0 T = int(input()) def calc(N, M, K): count = 0 K = K%M if K >= M-N: return 0 else: return K for i in range(T): N, M, K = many_int() print(calc(N,M,K))