Submission #308853


Source Code Expand

#include <stdio.h>
#include <string.h>

int main() {
  char name[101];
  int f=0, b,ret=0;

  scanf("%s\n",name);
  b = strlen(name)-1;

  while (f<b) {
    if(name[f] != name[b]) {
      ret = 1;
      break;
    }
    f++; b--;
  }
  printf("%s\n",(ret? "NO":"YES"));
  return 0;
}

Submission Info

Submission Time
Task A - 名前
User monyo
Language C (GCC 4.6.4)
Score 100
Code Size 302 Byte
Status AC
Exec Time 27 ms
Memory 840 KiB

Compile Error

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

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 32
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt
All 00_sample_00.txt, 00_sample_01.txt, 10_rand_00.txt, 10_rand_01.txt, 10_rand_02.txt, 10_rand_03.txt, 10_rand_04.txt, 10_rand_05.txt, 10_rand_06.txt, 10_rand_07.txt, 10_rand_08.txt, 10_rand_09.txt, 10_rand_10.txt, 10_rand_11.txt, 10_rand_12.txt, 10_rand_13.txt, 10_rand_14.txt, 10_rand_15.txt, 10_rand_16.txt, 10_rand_17.txt, 10_rand_18.txt, 10_rand_19.txt, 10_rand_20.txt, 10_rand_21.txt, 10_rand_22.txt, 10_rand_23.txt, 10_rand_24.txt, 10_rand_25.txt, 10_rand_26.txt, 10_rand_27.txt, 10_rand_28.txt, 10_rand_29.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 23 ms 796 KiB
00_sample_01.txt AC 24 ms 796 KiB
10_rand_00.txt AC 24 ms 836 KiB
10_rand_01.txt AC 23 ms 792 KiB
10_rand_02.txt AC 23 ms 788 KiB
10_rand_03.txt AC 23 ms 796 KiB
10_rand_04.txt AC 23 ms 796 KiB
10_rand_05.txt AC 23 ms 788 KiB
10_rand_06.txt AC 24 ms 792 KiB
10_rand_07.txt AC 23 ms 796 KiB
10_rand_08.txt AC 23 ms 800 KiB
10_rand_09.txt AC 24 ms 800 KiB
10_rand_10.txt AC 23 ms 788 KiB
10_rand_11.txt AC 23 ms 792 KiB
10_rand_12.txt AC 23 ms 796 KiB
10_rand_13.txt AC 23 ms 792 KiB
10_rand_14.txt AC 23 ms 792 KiB
10_rand_15.txt AC 23 ms 796 KiB
10_rand_16.txt AC 23 ms 792 KiB
10_rand_17.txt AC 21 ms 792 KiB
10_rand_18.txt AC 22 ms 796 KiB
10_rand_19.txt AC 23 ms 792 KiB
10_rand_20.txt AC 23 ms 796 KiB
10_rand_21.txt AC 23 ms 796 KiB
10_rand_22.txt AC 23 ms 800 KiB
10_rand_23.txt AC 23 ms 792 KiB
10_rand_24.txt AC 23 ms 796 KiB
10_rand_25.txt AC 21 ms 796 KiB
10_rand_26.txt AC 22 ms 796 KiB
10_rand_27.txt AC 23 ms 840 KiB
10_rand_28.txt AC 27 ms 792 KiB
10_rand_29.txt AC 23 ms 796 KiB