東京大学プログラミングコンテスト2014

Submission #3980152

Source codeソースコード

#include<cstdio>
#include<cstring>
using namespace std;
char a[1000],b[1000],c[1000];
int main()
{
    scanf("%s%s%s",a,b,c);
    if((strcmp(a,"not")==0)&&(strcmp(b,"not")==0)&&(strcmp(c,"not")!=0))printf("%s",c);
    if((strcmp(a,"not")!=0)&&(strcmp(b,"not")==0)&&(strcmp(c,"not")==0))printf("%s",a);
    if((strcmp(a,"not")==0)&&(strcmp(b,"not")!=0)&&(strcmp(c,"not")==0))printf("%s",b);
    if((strcmp(a,"not")==0)&&(strcmp(b,"not")==0)&&(strcmp(c,"not")==0))printf("%s %s %s",a,b,c);
    return 0;
}

Submission

Task問題 A - 二重否定除去法則
User nameユーザ名 luogu_bot1
Created time投稿日時
Language言語 C++ (GCC 5.4.1)
Status状態 WA
Score得点 0
Source lengthソースコード長 503 Byte
File nameファイル名
Exec time実行時間 ms
Memory usageメモリ使用量 -

Compiler messageコンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:7:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s%s%s",a,b,c);
^

Test case

Set

Set name Score得点 / Max score Cases
All 0 / 100 scrambled_00.txt,scrambled_01.txt,scrambled_02.txt,scrambled_03.txt,scrambled_04.txt,scrambled_05.txt,scrambled_06.txt,scrambled_07.txt,scrambled_08.txt,scrambled_09.txt,scrambled_10.txt,scrambled_11.txt,scrambled_12.txt,scrambled_13.txt,scrambled_14.txt,scrambled_15.txt,scrambled_16.txt,scrambled_17.txt,scrambled_18.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
scrambled_00.txt WA
scrambled_01.txt WA
scrambled_02.txt WA
scrambled_03.txt WA
scrambled_04.txt WA
scrambled_05.txt WA
scrambled_06.txt WA
scrambled_07.txt WA
scrambled_08.txt WA
scrambled_09.txt WA
scrambled_10.txt WA
scrambled_11.txt WA
scrambled_12.txt WA
scrambled_13.txt WA
scrambled_14.txt WA
scrambled_15.txt WA
scrambled_16.txt WA
scrambled_17.txt WA
scrambled_18.txt WA