結果

問題 No.836 じょうよ
ユーザー syunsukesyunsuke
提出日時 2019-06-25 00:13:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 1,000 ms
コード長 223 bytes
コンパイル時間 1,323 ms
コンパイル使用メモリ 86,992 KB
実行使用メモリ 77,376 KB
最終ジャッジ日時 2023-09-04 20:15:25
合計ジャッジ時間 7,853 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
77,284 KB
testcase_01 AC 73 ms
71,464 KB
testcase_02 AC 72 ms
71,396 KB
testcase_03 AC 72 ms
71,420 KB
testcase_04 AC 71 ms
71,364 KB
testcase_05 AC 71 ms
71,352 KB
testcase_06 AC 72 ms
71,084 KB
testcase_07 AC 70 ms
71,464 KB
testcase_08 AC 70 ms
71,360 KB
testcase_09 AC 74 ms
71,448 KB
testcase_10 AC 70 ms
71,420 KB
testcase_11 AC 96 ms
76,968 KB
testcase_12 AC 91 ms
76,740 KB
testcase_13 AC 98 ms
76,804 KB
testcase_14 AC 83 ms
76,448 KB
testcase_15 AC 97 ms
76,464 KB
testcase_16 AC 105 ms
77,212 KB
testcase_17 AC 104 ms
77,296 KB
testcase_18 AC 89 ms
76,616 KB
testcase_19 AC 92 ms
76,800 KB
testcase_20 AC 95 ms
76,804 KB
testcase_21 AC 82 ms
76,760 KB
testcase_22 AC 91 ms
76,764 KB
testcase_23 AC 98 ms
77,376 KB
testcase_24 AC 89 ms
76,352 KB
testcase_25 AC 89 ms
76,668 KB
testcase_26 AC 82 ms
76,704 KB
testcase_27 AC 82 ms
76,748 KB
testcase_28 AC 96 ms
76,740 KB
testcase_29 AC 82 ms
76,500 KB
testcase_30 AC 83 ms
76,452 KB
testcase_31 AC 89 ms
76,904 KB
testcase_32 AC 81 ms
76,744 KB
testcase_33 AC 82 ms
76,656 KB
testcase_34 AC 82 ms
76,620 KB
testcase_35 AC 89 ms
76,648 KB
testcase_36 AC 92 ms
76,772 KB
testcase_37 AC 91 ms
76,672 KB
testcase_38 AC 95 ms
77,116 KB
testcase_39 AC 91 ms
76,580 KB
testcase_40 AC 96 ms
77,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C=map(int,input().split())
A-=1
A1=A//C
A2=A%C
B1=B//C
B2=B%C
for i in range(C):
    ANS=B1-A1
    if i==0:
        pass
    else:
        if i<=B2:
            ANS+=1
        if i<=A2:
            ANS-=1
    print(ANS)
0