Submission #1437701


Source Code Expand

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

int main(int argc, char *argv[])
{
    char buf[512];
    fgets(buf, sizeof(buf), stdin);
    buf[strlen(buf)-1] = '\0';
    printf("%spp\n", buf);
    return 0;
}

Submission Info

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

Compile Error

./Main.c: In function ‘main’:
./Main.c:7:5: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
     fgets(buf, sizeof(buf), stdin);
     ^

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 0 ms 128 KB
sample_02.txt AC 0 ms 128 KB
test_aaaaaaaaaa.txt AC 0 ms 128 KB
test_myonmyon.txt AC 0 ms 128 KB
test_nemui.txt AC 0 ms 128 KB
test_onakasuita.txt AC 0 ms 128 KB
test_p.txt AC 0 ms 128 KB