結果

問題 No.1486 ロボット
ユーザー 👑 KazunKazun
提出日時 2021-04-30 03:08:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 222 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 75,740 KB
最終ジャッジ日時 2023-09-25 03:15:46
合計ジャッジ時間 3,347 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,248 KB
testcase_01 AC 74 ms
71,236 KB
testcase_02 AC 73 ms
71,152 KB
testcase_03 AC 75 ms
71,188 KB
testcase_04 AC 72 ms
71,232 KB
testcase_05 AC 73 ms
71,240 KB
testcase_06 AC 105 ms
75,604 KB
testcase_07 AC 104 ms
75,456 KB
testcase_08 AC 88 ms
75,600 KB
testcase_09 AC 79 ms
75,188 KB
testcase_10 AC 114 ms
75,580 KB
testcase_11 AC 115 ms
75,544 KB
testcase_12 AC 94 ms
75,740 KB
testcase_13 AC 84 ms
75,516 KB
testcase_14 AC 92 ms
75,616 KB
testcase_15 AC 82 ms
75,476 KB
testcase_16 AC 83 ms
75,336 KB
testcase_17 AC 85 ms
75,368 KB
testcase_18 AC 89 ms
75,500 KB
testcase_19 AC 83 ms
75,552 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def m(A,B,C,D,T):
    X=0
    for i in range(T):
        if i%(A+B)<A and i%(C+D)<C:
            X+=1
    return X

A,B,C,D,E=map(int,input().split())
Q,R=divmod(E,(A+B)*(C+D))
print(Q*m(A,B,C,D,(A+B)*(C+D))+m(A,B,C,D,R))
0