結果
| 問題 | No.1486 ロボット |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-06 00:34:35 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 444 ms |
| コンパイル使用メモリ | 85,496 KB |
| 実行使用メモリ | 60,288 KB |
| 最終ジャッジ日時 | 2026-04-04 06:35:53 |
| 合計ジャッジ時間 | 2,027 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)