結果

問題 No.1486 ロボット
ユーザー nohakai3nohakai3
提出日時 2022-07-02 20:40:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 311 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 7,956 KB
最終ジャッジ日時 2023-08-18 12:53:28
合計ジャッジ時間 3,658 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,852 KB
testcase_01 AC 18 ms
7,776 KB
testcase_02 AC 16 ms
7,784 KB
testcase_03 AC 16 ms
7,776 KB
testcase_04 AC 15 ms
7,788 KB
testcase_05 AC 16 ms
7,820 KB
testcase_06 AC 311 ms
7,728 KB
testcase_07 AC 311 ms
7,860 KB
testcase_08 AC 133 ms
7,816 KB
testcase_09 AC 59 ms
7,764 KB
testcase_10 AC 283 ms
7,956 KB
testcase_11 AC 273 ms
7,852 KB
testcase_12 AC 138 ms
7,900 KB
testcase_13 AC 161 ms
7,896 KB
testcase_14 AC 124 ms
7,908 KB
testcase_15 AC 34 ms
7,904 KB
testcase_16 AC 46 ms
7,868 KB
testcase_17 AC 69 ms
7,940 KB
testcase_18 AC 85 ms
7,724 KB
testcase_19 AC 32 ms
7,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d,e=map(int,input().split())

m=(a+b)*(c+d)
ans=0
for i in range(m):
    if i%(a+b)<a and i%(c+d)<c:
        ans+=e//m
        if i<e%m:
            ans+=1

print(ans)
0