提出 #28954796


ソースコード 拡げる

#include<stdio.h>
int main(){
  int i,cnt=0;
  char bun[1000000],bun2[1000000];
  for(i=0;i<1000000;i++){
  scanf("%c",&bun[i]);
    if(bun[i]=='\0')
      break;
    cnt++;
  }
  i=0;
  while(cnt>=0){
    bun2[i]=bun[cnt-1];
    i++;
    cnt--;
  }
  if(bun2[cnt]=='a')
    printf("Yes");
  else if(bun==bun2)
    printf("Yes");
  else
    printf("No");
  
  return 0;
}
  

提出情報

提出日時
問題 C - kasaka
ユーザ TCSP
言語 C (GCC 9.2.1)
得点 0
コード長 399 Byte
結果 WA
実行時間 46 ms
メモリ 2656 KiB

コンパイルエラー

./Main.c: In function ‘main’:
./Main.c:6:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
    6 |   scanf("%c",&bun[i]);
      |   ^~~~~~~~~~~~~~~~~~~

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 0 / 300
結果
AC × 1
WA × 2
AC × 15
WA × 14
セット名 テストケース
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, hand_09.txt, hand_10.txt, hand_11.txt, hand_12.txt, hand_13.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt
ケース名 結果 実行時間 メモリ
example_00.txt WA 6 ms 1628 KiB
example_01.txt AC 1 ms 1612 KiB
example_02.txt WA 1 ms 1676 KiB
hand_00.txt AC 42 ms 2548 KiB
hand_01.txt AC 46 ms 2540 KiB
hand_02.txt WA 42 ms 2644 KiB
hand_03.txt WA 43 ms 2644 KiB
hand_04.txt AC 40 ms 2596 KiB
hand_05.txt WA 41 ms 2488 KiB
hand_06.txt AC 40 ms 2652 KiB
hand_07.txt AC 42 ms 2592 KiB
hand_08.txt AC 46 ms 2540 KiB
hand_09.txt WA 1 ms 1632 KiB
hand_10.txt WA 1 ms 1596 KiB
hand_11.txt AC 44 ms 2656 KiB
hand_12.txt AC 41 ms 2492 KiB
hand_13.txt WA 41 ms 2628 KiB
random_00.txt WA 36 ms 2380 KiB
random_01.txt WA 38 ms 2512 KiB
random_02.txt WA 38 ms 2536 KiB
random_03.txt WA 26 ms 2292 KiB
random_04.txt WA 29 ms 2200 KiB
random_05.txt WA 38 ms 2372 KiB
random_06.txt AC 39 ms 2560 KiB
random_07.txt AC 31 ms 2340 KiB
random_08.txt AC 42 ms 2640 KiB
random_09.txt AC 34 ms 2500 KiB
random_10.txt AC 42 ms 2488 KiB
random_11.txt AC 41 ms 2596 KiB