Submission #560983


Source Code Expand

#include<stdio.h>

int main(){
    int N;
    scanf("%d",&N);

    int a,b;
    scanf("%d",&b);

    int i;
    for(i = 1;i < N;i++){
    	    scanf("%d",&a);
	    if (a < b) b = a;
	    }

    printf("%d\n",b);
    
    return 0;
}

Submission Info

Submission Time
Task B - おいしいたこ焼きの食べ方
User syouhei
Language C (GCC 4.6.4)
Score 100
Code Size 250 Byte
Status AC
Exec Time 26 ms
Memory 804 KiB

Compile Error

./Main.c: In function ‘main’:
./Main.c:5:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
./Main.c:8:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
./Main.c:12:15: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 33
Set Name Test Cases
All rand0.txt, rand1.txt, rand10.txt, rand11.txt, rand12.txt, rand13.txt, rand14.txt, rand15.txt, rand16.txt, rand17.txt, rand18.txt, rand19.txt, rand2.txt, rand20.txt, rand21.txt, rand22.txt, rand23.txt, rand24.txt, rand25.txt, rand26.txt, rand27.txt, rand28.txt, rand29.txt, rand3.txt, rand4.txt, rand5.txt, rand6.txt, rand7.txt, rand8.txt, rand9.txt, s1.txt, s2.txt, s3.txt
Case Name Status Exec Time Memory
rand0.txt AC 22 ms 708 KiB
rand1.txt AC 24 ms 644 KiB
rand10.txt AC 22 ms 796 KiB
rand11.txt AC 23 ms 800 KiB
rand12.txt AC 23 ms 796 KiB
rand13.txt AC 26 ms 772 KiB
rand14.txt AC 24 ms 704 KiB
rand15.txt AC 22 ms 700 KiB
rand16.txt AC 22 ms 796 KiB
rand17.txt AC 23 ms 704 KiB
rand18.txt AC 21 ms 696 KiB
rand19.txt AC 22 ms 704 KiB
rand2.txt AC 23 ms 704 KiB
rand20.txt AC 24 ms 728 KiB
rand21.txt AC 23 ms 696 KiB
rand22.txt AC 23 ms 796 KiB
rand23.txt AC 23 ms 700 KiB
rand24.txt AC 23 ms 700 KiB
rand25.txt AC 21 ms 800 KiB
rand26.txt AC 22 ms 704 KiB
rand27.txt AC 23 ms 704 KiB
rand28.txt AC 23 ms 708 KiB
rand29.txt AC 21 ms 796 KiB
rand3.txt AC 24 ms 796 KiB
rand4.txt AC 23 ms 800 KiB
rand5.txt AC 23 ms 652 KiB
rand6.txt AC 25 ms 704 KiB
rand7.txt AC 24 ms 712 KiB
rand8.txt AC 23 ms 804 KiB
rand9.txt AC 24 ms 792 KiB
s1.txt AC 25 ms 772 KiB
s2.txt AC 22 ms 708 KiB
s3.txt AC 23 ms 800 KiB