結果

問題 No.1486 ロボット
ユーザー あかりきあかりき
提出日時 2021-04-24 20:54:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 86,544 KB
実行使用メモリ 150,808 KB
最終ジャッジ日時 2023-09-17 13:49:01
合計ジャッジ時間 3,161 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,104 KB
testcase_01 AC 73 ms
71,124 KB
testcase_02 AC 72 ms
71,208 KB
testcase_03 AC 72 ms
71,116 KB
testcase_04 AC 75 ms
71,072 KB
testcase_05 AC 73 ms
71,208 KB
testcase_06 AC 136 ms
150,716 KB
testcase_07 AC 129 ms
150,808 KB
testcase_08 AC 108 ms
112,504 KB
testcase_09 AC 99 ms
93,544 KB
testcase_10 AC 125 ms
139,604 KB
testcase_11 AC 120 ms
139,556 KB
testcase_12 AC 105 ms
109,116 KB
testcase_13 AC 92 ms
93,380 KB
testcase_14 AC 97 ms
96,816 KB
testcase_15 AC 85 ms
79,632 KB
testcase_16 AC 89 ms
86,928 KB
testcase_17 AC 88 ms
83,604 KB
testcase_18 AC 99 ms
96,636 KB
testcase_19 AC 84 ms
81,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d,e=map(int,input().split())
n=(a+b)*(c+d)
L=[]
for i in range(n):
  if i%(a+b)<a and i%(c+d)<c:
    L.append(1)
  else:
    L.append(0)

print(sum(L)*(e//n)+sum(L[0:e%n]))
0