結果

問題 No.1486 ロボット
ユーザー kikagekikage
提出日時 2021-08-11 16:44:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 313 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 114 ms
コンパイル使用メモリ 11,832 KB
実行使用メモリ 20,780 KB
最終ジャッジ日時 2023-10-25 08:14:59
合計ジャッジ時間 4,012 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,108 KB
testcase_01 AC 27 ms
10,108 KB
testcase_02 AC 30 ms
10,108 KB
testcase_03 AC 27 ms
10,108 KB
testcase_04 AC 27 ms
10,108 KB
testcase_05 AC 28 ms
10,108 KB
testcase_06 AC 305 ms
17,692 KB
testcase_07 AC 313 ms
17,692 KB
testcase_08 AC 158 ms
13,860 KB
testcase_09 AC 73 ms
11,812 KB
testcase_10 AC 245 ms
20,780 KB
testcase_11 AC 247 ms
20,780 KB
testcase_12 AC 144 ms
14,120 KB
testcase_13 AC 132 ms
12,144 KB
testcase_14 AC 125 ms
13,064 KB
testcase_15 AC 44 ms
10,560 KB
testcase_16 AC 59 ms
11,548 KB
testcase_17 AC 64 ms
11,284 KB
testcase_18 AC 96 ms
13,132 KB
testcase_19 AC 46 ms
11,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C,D,E = map(int,input().split())
together=[0]*(A+B)*(C+D)
for t in range((A+B)*(C+D)):
    if t%(A+B)<A and t%(C+D)<C:together[t]=1

print(sum(together)*(E//((A+B)*(C+D))) + sum(together[:E%((A+B)*(C+D))]))
0