結果

問題 No.1926 Sequence of Remainders
ユーザー SidewaysOwlSidewaysOwl
提出日時 2022-05-06 21:30:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 337 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 434 ms
コンパイル使用メモリ 86,668 KB
実行使用メモリ 78,808 KB
最終ジャッジ日時 2023-09-20 02:23:53
合計ジャッジ時間 15,329 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,324 KB
testcase_01 AC 306 ms
77,328 KB
testcase_02 AC 309 ms
77,428 KB
testcase_03 AC 337 ms
78,172 KB
testcase_04 AC 335 ms
78,172 KB
testcase_05 AC 336 ms
78,152 KB
testcase_06 AC 327 ms
78,560 KB
testcase_07 AC 327 ms
78,544 KB
testcase_08 AC 321 ms
78,484 KB
testcase_09 AC 323 ms
78,436 KB
testcase_10 AC 325 ms
78,420 KB
testcase_11 AC 327 ms
78,680 KB
testcase_12 AC 327 ms
78,436 KB
testcase_13 AC 324 ms
78,484 KB
testcase_14 AC 335 ms
78,680 KB
testcase_15 AC 329 ms
78,356 KB
testcase_16 AC 328 ms
78,292 KB
testcase_17 AC 332 ms
78,352 KB
testcase_18 AC 325 ms
78,416 KB
testcase_19 AC 324 ms
78,488 KB
testcase_20 AC 320 ms
78,272 KB
testcase_21 AC 331 ms
78,532 KB
testcase_22 AC 322 ms
78,440 KB
testcase_23 AC 321 ms
78,244 KB
testcase_24 AC 332 ms
78,496 KB
testcase_25 AC 325 ms
78,420 KB
testcase_26 AC 326 ms
78,808 KB
testcase_27 AC 326 ms
78,616 KB
testcase_28 AC 319 ms
78,668 KB
testcase_29 AC 321 ms
78,584 KB
testcase_30 AC 325 ms
78,616 KB
testcase_31 AC 330 ms
78,684 KB
testcase_32 AC 326 ms
78,724 KB
testcase_33 AC 328 ms
78,512 KB
testcase_34 AC 327 ms
78,620 KB
testcase_35 AC 323 ms
78,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for i in range(int(input())):
    n,m,k = map(int,input().split())
    val = k % m
    if 1 <= n <= m - 1 - val:
        print(val)
    else:
        print(0)
0