結果
| 問題 |
No.1486 ロボット
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-06 00:34:35 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 232 bytes |
| コンパイル時間 | 194 ms |
| コンパイル使用メモリ | 82,216 KB |
| 実行使用メモリ | 61,776 KB |
| 最終ジャッジ日時 | 2024-09-13 17:05:55 |
| 合計ジャッジ時間 | 2,008 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 14 |
ソースコード
A,B,C,D,E = map(int,input().split())
time = 1
count = 1
flg = False
skip = (A+B)*(C+D)
while time < min(skip,E):
if 0 <= time%(A+B) < A and 0 <= time%(C+D) < C:
count += 1
time += 1
ans = count*(max(skip,E)//skip)
print(ans)