提出 #908114


ソースコード 拡げる

#include <bits/stdc++.h>

int main()
{
    int n,a,b,xa=0;
   scanf("%d %d %d",&n,&a,&b);
   for(int i=0;i<n;i++)
   {
        int  x;
        scanf("%d",&x);
        if(x>=a&&x<b)
            xa++;
   }
   printf("%d\n",n-xa);
   return 0;
}

提出情報

提出日時
問題 A - バリケード
ユーザ d_skyhawk
言語 C++14 (GCC 5.4.1)
得点 66
コード長 261 Byte
結果 AC
実行時間 3 ms
メモリ 256 KiB

コンパイルエラー

./Main.cpp: In function ‘int main()’:
./Main.cpp:7:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d %d %d",&n,&a,&b);
                              ^
./Main.cpp:11:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d",&x);
                       ^

ジャッジ結果

セット名 All
得点 / 配点 66 / 66
結果
AC × 9
セット名 テストケース
All 00_sample.txt, 01_sample.txt, 02_sampe.txt, 03_sample.txt, corner_case_03.txt, corner_case_04.txt, random_case_00.txt, random_case_01.txt, random_case_02.txt
ケース名 結果 実行時間 メモリ
00_sample.txt AC 3 ms 256 KiB
01_sample.txt AC 3 ms 256 KiB
02_sampe.txt AC 2 ms 256 KiB
03_sample.txt AC 2 ms 256 KiB
corner_case_03.txt AC 3 ms 256 KiB
corner_case_04.txt AC 3 ms 256 KiB
random_case_00.txt AC 3 ms 256 KiB
random_case_01.txt AC 3 ms 256 KiB
random_case_02.txt AC 3 ms 256 KiB