Submission #19315634


Source Code Expand

import math
from math import gcd,pi,sqrt
INF = float("inf")
MOD = 10**9 + 7
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
import itertools
import bisect
import re
from collections import Counter,deque,defaultdict
def iinput(): return int(input())
def imap(): return map(int, input().split())
def ilist(): return list(imap())
def irow(N): return [iinput() for i in range(N)]
def sinput(): return input().rstrip()
def smap(): return sinput().split()
def slist(): return list(smap())
def srow(N): return [sinput() for i in range(N)]

def main():
    import numpy as np
    n = iinput()
    a = np.array(ilist())
    b = np.array(ilist())
    print('Yes' if np.sum(a*b) == 0 else 'No')


if __name__=="__main__":
    main() 

Submission Info

Submission Time
Task B - Orthogonality
User kenken0305
Language Python (3.8.2)
Score 200
Code Size 770 Byte
Status AC
Exec Time 165 ms
Memory 38028 KiB

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 165 ms 38028 KiB
extreme_01.txt AC 155 ms 37288 KiB
extreme_02.txt AC 103 ms 27020 KiB
handmade_00.txt AC 104 ms 27264 KiB
handmade_01.txt AC 110 ms 26796 KiB
handmade_02.txt AC 107 ms 26928 KiB
handmade_03.txt AC 105 ms 27008 KiB
handmade_04.txt AC 105 ms 27272 KiB
handmade_05.txt AC 107 ms 26920 KiB
random_00.txt AC 155 ms 37104 KiB
random_01.txt AC 156 ms 37056 KiB
random_02.txt AC 110 ms 27468 KiB
random_03.txt AC 149 ms 36144 KiB
random_04.txt AC 109 ms 27240 KiB
random_05.txt AC 137 ms 32356 KiB
sample_01.txt AC 106 ms 26684 KiB
sample_02.txt AC 107 ms 27268 KiB
sample_03.txt AC 105 ms 27032 KiB