提出 #19320972


ソースコード 拡げる

import sys
input = sys.stdin.readline
import numpy as np

#    int(input())
#    input().split().strip()
#    map(int, input().strip().split())

n = int(input())
A = [int(a) for a in input().strip().split()]
B = [int(b) for b in input().strip().split()]

A = np.array(A, dtype=np.int32)
B = np.array(B, dtype=np.int32)

d = np.dot(A,B)
if d ==0:
    print("Yes")
else:
    print("No")

提出情報

提出日時
問題 B - Orthogonality
ユーザ rsypoz
言語 Python (3.8.2)
得点 200
コード長 405 Byte
結果 AC
実行時間 179 ms
メモリ 39284 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 18
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
extreme_00.txt AC 179 ms 39284 KiB
extreme_01.txt AC 170 ms 39128 KiB
extreme_02.txt AC 114 ms 27224 KiB
handmade_00.txt AC 114 ms 26912 KiB
handmade_01.txt AC 114 ms 27060 KiB
handmade_02.txt AC 115 ms 26652 KiB
handmade_03.txt AC 115 ms 27028 KiB
handmade_04.txt AC 112 ms 27004 KiB
handmade_05.txt AC 115 ms 27060 KiB
random_00.txt AC 169 ms 38160 KiB
random_01.txt AC 169 ms 38840 KiB
random_02.txt AC 115 ms 27224 KiB
random_03.txt AC 164 ms 37096 KiB
random_04.txt AC 116 ms 27524 KiB
random_05.txt AC 141 ms 33140 KiB
sample_01.txt AC 112 ms 26876 KiB
sample_02.txt AC 113 ms 26820 KiB
sample_03.txt AC 113 ms 27220 KiB