Submission #19519084


Source Code Expand

Copy
use proconio::input;

fn main() {
    input! {
        n: usize,
        a: [i32; n],
        b: [i32; n],
    }
    let mut inner_product = 0;
    for i in 0..n {
        inner_product += a[i] * b[i];
    }
    if inner_product == 0 {
        println!("Yes");
    } else {
        println!("No");
    }
}

Submission Info

Submission Time
Task B - Orthogonality
User toga57
Language Rust (1.42.0)
Score 200
Code Size 324 Byte
Status AC
Exec Time 17 ms
Memory 3496 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 14 ms 3448 KB
extreme_01.txt AC 17 ms 3496 KB
extreme_02.txt AC 2 ms 1908 KB
handmade_00.txt AC 2 ms 2048 KB
handmade_01.txt AC 2 ms 2112 KB
handmade_02.txt AC 2 ms 2052 KB
handmade_03.txt AC 2 ms 1904 KB
handmade_04.txt AC 2 ms 2072 KB
handmade_05.txt AC 2 ms 2048 KB
random_00.txt AC 17 ms 3296 KB
random_01.txt AC 15 ms 3256 KB
random_02.txt AC 2 ms 2008 KB
random_03.txt AC 10 ms 3308 KB
random_04.txt AC 3 ms 2136 KB
random_05.txt AC 8 ms 2728 KB
sample_01.txt AC 2 ms 2016 KB
sample_02.txt AC 2 ms 2004 KB
sample_03.txt AC 2 ms 2052 KB