Submission #19724178


Source Code Expand

Copy
N = int(input())
A = list(map(int, input().split(" ")))
B = list(map(int, input().split(" ")))
         
fact = 0
for i in range(N):
  fact += A[i] * B[i]
  
if fact == 0:
  print("Yes")
else:
  print("No")
 

Submission Info

Submission Time
Task B - Orthogonality
User graythunder
Language Python (3.8.2)
Score 200
Code Size 222 Byte
Status AC
Exec Time 86 ms
Memory 21140 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 18
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All extreme_00.txt, extreme_01.txt, extreme_02.txt, handmade_00.txt, handmade_01.txt, handmade_02.txt, handmade_03.txt, handmade_04.txt, handmade_05.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
extreme_00.txt AC 86 ms 21008 KB
extreme_01.txt AC 86 ms 21140 KB
extreme_02.txt AC 19 ms 8872 KB
handmade_00.txt AC 20 ms 9036 KB
handmade_01.txt AC 21 ms 9040 KB
handmade_02.txt AC 18 ms 8884 KB
handmade_03.txt AC 20 ms 8880 KB
handmade_04.txt AC 18 ms 8876 KB
handmade_05.txt AC 25 ms 8872 KB
random_00.txt AC 80 ms 20544 KB
random_01.txt AC 84 ms 20908 KB
random_02.txt AC 28 ms 9804 KB
random_03.txt AC 76 ms 19296 KB
random_04.txt AC 26 ms 9772 KB
random_05.txt AC 56 ms 15088 KB
sample_01.txt AC 20 ms 8888 KB
sample_02.txt AC 22 ms 8888 KB
sample_03.txt AC 19 ms 8872 KB