結果

問題 No.1486 ロボット
ユーザー O2MT
提出日時 2021-05-06 00:37:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 186 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 82,580 KB
実行使用メモリ 62,228 KB
最終ジャッジ日時 2024-09-13 17:08:53
合計ジャッジ時間 2,118 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C,D,E = map(int,input().split())
time,count = 1,1
while time < min((A+B)*(C+D),E):
  if 0 <= time%(A+B) < A and 0 <= time%(C+D) < C:
    count += 1
  time += 1
print(count*(E//time))
0