結果

問題 No.1486 ロボット
ユーザー nohakai3nohakai3
提出日時 2022-07-02 20:40:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 365 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-05-05 18:10:41
合計ジャッジ時間 3,475 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 28 ms
10,624 KB
testcase_02 AC 28 ms
10,624 KB
testcase_03 AC 28 ms
10,624 KB
testcase_04 AC 26 ms
10,624 KB
testcase_05 AC 27 ms
10,624 KB
testcase_06 AC 346 ms
10,752 KB
testcase_07 AC 365 ms
10,752 KB
testcase_08 AC 154 ms
10,624 KB
testcase_09 AC 77 ms
10,752 KB
testcase_10 AC 302 ms
10,624 KB
testcase_11 AC 293 ms
10,624 KB
testcase_12 AC 160 ms
10,624 KB
testcase_13 AC 171 ms
10,624 KB
testcase_14 AC 144 ms
10,624 KB
testcase_15 AC 47 ms
10,624 KB
testcase_16 AC 55 ms
10,752 KB
testcase_17 AC 79 ms
10,624 KB
testcase_18 AC 100 ms
10,752 KB
testcase_19 AC 44 ms
10,624 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