Submission #52843066


Source Code Expand

#include <stdio.h>

int main(){
    int A[9], B[8];

    int sum_A = 0;
    int sum_B = 0;
    for(int i = 0; i < 9; i++){
        scanf("%d ", &A[i]);
        sum_A += A[i];
    }
    for(int i = 0; i < 8; i++){
        scanf("%d ", &B[i]);
        sum_B += B[i];
    }

    printf("%d\n", sum_A - sum_B + 1);
    
    return 0;
}

Submission Info

Submission Time
Task A - The bottom of the ninth
User oinucha
Language C (gcc 12.2.0)
Score 100
Code Size 350 Byte
Status AC
Exec Time 1 ms
Memory 1724 KiB

Compile Error

Main.c: In function ‘main’:
Main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |         scanf("%d ", &A[i]);
      |         ^~~~~~~~~~~~~~~~~~~
Main.c:13:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   13 |         scanf("%d ", &B[i]);
      |         ^~~~~~~~~~~~~~~~~~~

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 12
Set Name Test Cases
Sample example_00.txt, example_01.txt
All example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt
Case Name Status Exec Time Memory
example_00.txt AC 1 ms 1716 KiB
example_01.txt AC 1 ms 1620 KiB
hand_00.txt AC 1 ms 1716 KiB
hand_01.txt AC 1 ms 1700 KiB
hand_02.txt AC 1 ms 1632 KiB
random_00.txt AC 1 ms 1720 KiB
random_01.txt AC 1 ms 1720 KiB
random_02.txt AC 1 ms 1632 KiB
random_03.txt AC 1 ms 1636 KiB
random_04.txt AC 1 ms 1624 KiB
random_05.txt AC 0 ms 1568 KiB
random_06.txt AC 1 ms 1724 KiB