Submission #1199980


Source Code Expand

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

main(){
  char name[10];
  int i;

  scanf("%s",name);
  for(i=0;i<=strlen(name);i++){
      if(name[i]>=65&&name[i]<=90){
        name[i]=name[i]+32;
      }
  }
  printf("%spp\n",name);
}

Submission Info

Submission Time
Task A - ハンドルネーム
User c0114364
Language C (GCC 5.4.1)
Score 100
Code Size 243 Byte
Status AC
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.c:4:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main(){
 ^
./Main.c: In function ‘main’:
./Main.c:8:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%s",name);
   ^

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 7
Set Name Test Cases
All sample_01.txt, sample_02.txt, test_aaaaaaaaaa.txt, test_myonmyon.txt, test_nemui.txt, test_onakasuita.txt, test_p.txt
Case Name Status Exec Time Memory
sample_01.txt AC 1 ms 128 KB
sample_02.txt AC 1 ms 128 KB
test_aaaaaaaaaa.txt AC 1 ms 128 KB
test_myonmyon.txt AC 1 ms 128 KB
test_nemui.txt AC 1 ms 128 KB
test_onakasuita.txt AC 0 ms 128 KB
test_p.txt AC 1 ms 128 KB