Submission #62072432
Source Code Expand
Copy
def main():N = int(input())A = list(map(int, input().split()))if N == 2:exit(print("Yes"))for i in range(2, N):if A[i] * A[0] != A[i-1] * A[1]:exit(print("No"))print("Yes")if __name__ == "__main__":main()
def main(): N = int(input()) A = list(map(int, input().split())) if N == 2: exit(print("Yes")) for i in range(2, N): if A[i] * A[0] != A[i-1] * A[1]: exit(print("No")) print("Yes") if __name__ == "__main__": main()
Submission Info
Submission Time | |
---|---|
Task | B - Geometric Sequence |
User | keysersoze21 |
Language | Python (PyPy 3.10-v7.3.12) |
Score | 200 |
Code Size | 290 Byte |
Status | AC |
Exec Time | 58 ms |
Memory | 76828 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example_00.txt, example_01.txt, example_02.txt |
All | example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, hand_09.txt, hand_10.txt, hand_11.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example_00.txt | AC | 56 ms | 76616 KB |
example_01.txt | AC | 56 ms | 76828 KB |
example_02.txt | AC | 57 ms | 76452 KB |
hand_00.txt | AC | 57 ms | 76348 KB |
hand_01.txt | AC | 57 ms | 76480 KB |
hand_02.txt | AC | 57 ms | 76524 KB |
hand_03.txt | AC | 57 ms | 76248 KB |
hand_04.txt | AC | 57 ms | 76680 KB |
hand_05.txt | AC | 56 ms | 76516 KB |
hand_06.txt | AC | 57 ms | 76292 KB |
hand_07.txt | AC | 57 ms | 76348 KB |
hand_08.txt | AC | 56 ms | 76624 KB |
hand_09.txt | AC | 58 ms | 76380 KB |
hand_10.txt | AC | 56 ms | 76584 KB |
hand_11.txt | AC | 57 ms | 76360 KB |
random_00.txt | AC | 56 ms | 76748 KB |
random_01.txt | AC | 57 ms | 76452 KB |
random_02.txt | AC | 57 ms | 76656 KB |
random_03.txt | AC | 56 ms | 76772 KB |
random_04.txt | AC | 58 ms | 76488 KB |
random_05.txt | AC | 56 ms | 76564 KB |
random_06.txt | AC | 56 ms | 76488 KB |
random_07.txt | AC | 57 ms | 76460 KB |
random_08.txt | AC | 56 ms | 76548 KB |
random_09.txt | AC | 56 ms | 76372 KB |
random_10.txt | AC | 56 ms | 76248 KB |
random_11.txt | AC | 57 ms | 76328 KB |
random_12.txt | AC | 56 ms | 76668 KB |
random_13.txt | AC | 56 ms | 76500 KB |
random_14.txt | AC | 58 ms | 76644 KB |