Submission #737520
Source Code Expand
l,x,y,s,d=map(int,input().split())
ans=((d-s+l)%l)/(x+y)
if y-x>0:
ans=min(ans,((s-d+l)%l)/(y-x))
print(ans)
Submission Info
| Submission Time | |
|---|---|
| Task | A - 動く歩道 |
| User | cpthgli |
| Language | PyPy3 (2.4.0) |
| Score | 100 |
| Code Size | 116 Byte |
| Status | AC |
| Exec Time | 366 ms |
| Memory | 43120 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt |
| All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01.txt | AC | 353 ms | 42992 KiB |
| 02.txt | AC | 360 ms | 42992 KiB |
| 03.txt | AC | 354 ms | 42992 KiB |
| 04.txt | AC | 355 ms | 42992 KiB |
| 05.txt | AC | 361 ms | 42992 KiB |
| 06.txt | AC | 366 ms | 42992 KiB |
| 07.txt | AC | 360 ms | 42992 KiB |
| 08.txt | AC | 359 ms | 42992 KiB |
| 09.txt | AC | 364 ms | 42992 KiB |
| 10.txt | AC | 347 ms | 42992 KiB |
| 11.txt | AC | 362 ms | 42992 KiB |
| 12.txt | AC | 359 ms | 42992 KiB |
| 13.txt | AC | 358 ms | 42992 KiB |
| 14.txt | AC | 351 ms | 42992 KiB |
| 15.txt | AC | 356 ms | 42992 KiB |
| 16.txt | AC | 358 ms | 42992 KiB |
| sample_01.txt | AC | 362 ms | 42992 KiB |
| sample_02.txt | AC | 359 ms | 43120 KiB |
| sample_03.txt | AC | 358 ms | 42992 KiB |
| sample_04.txt | AC | 357 ms | 42992 KiB |