結果

問題 No.1486 ロボット
ユーザー monnumonnu
提出日時 2021-04-23 22:38:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 324 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 15,856 KB
最終ジャッジ日時 2023-09-17 12:42:17
合計ジャッジ時間 3,392 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,832 KB
testcase_01 AC 15 ms
7,864 KB
testcase_02 AC 16 ms
7,932 KB
testcase_03 AC 16 ms
7,856 KB
testcase_04 AC 15 ms
7,760 KB
testcase_05 AC 16 ms
7,820 KB
testcase_06 AC 290 ms
15,724 KB
testcase_07 AC 274 ms
15,856 KB
testcase_08 AC 143 ms
11,832 KB
testcase_09 AC 64 ms
9,788 KB
testcase_10 AC 309 ms
13,928 KB
testcase_11 AC 324 ms
14,064 KB
testcase_12 AC 142 ms
11,312 KB
testcase_13 AC 116 ms
9,924 KB
testcase_14 AC 126 ms
10,176 KB
testcase_15 AC 36 ms
8,504 KB
testcase_16 AC 55 ms
9,104 KB
testcase_17 AC 62 ms
8,832 KB
testcase_18 AC 106 ms
10,152 KB
testcase_19 AC 44 ms
8,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C,D,E=map(int,input().split())
T=(A+B)*(C+D)
time=[0]*T
for t in range(T):
    if t%(A+B)<A and t%(C+D)<C:
        time[t]=1
x=sum(time)
ans=x*(E//T)
for  t in range(E%T):
    ans+=time[t]
print(ans)
0