Submission #4233244
Source Code Expand
#define F_in(s) freopen(s".in","r",stdin)
#define F_out(x) freopen(x".out","w",stdout)
#define lal long long int
#include<algorithm>
#include<iostream>
#include<cstring>
#include<cstdio>
#include<cmath>
using namespace std;
lal i,j,k,n;
char a[5],b[5],c[5];
int main()
{
//F_in("");
//F_out("");
scanf("%s%s%s",a,b,c);
bool x=true;
if(a[0]=='n' || a[1]=='o' || a[2]=='t')
{
x=!x;
if(b[0]=='n' || b[1]=='o' || b[2]=='t')
{
x=!x;
if(c[0]=='n' || c[1]=='o' || c[2]=='t')
{
x=!x;
if(x)
{
if(a[0]!='n' && a[1]!='o' && a[2]!='t')
printf("%c%c%c\n",a[0],a[1],a[2]);
else if(b[0]!='n' && b[1]!='o' && b[2]!='t')
printf("%c%c%c\n",b[0],b[1],b[2]);
else if(c[0]!='n' && c[1]!='o' && c[2]!='t')
printf("%c%c%c\n",c[0],c[1],c[2]);
}
else
printf("%c%c%c %c%c%c %c%c%c\n",a[0],a[1],a[2],b[0],b[1],b[2],c[0],c[1],c[2]);
}
else
{
if(x)
{
if(a[0]!='n' && a[1]!='o' && a[2]!='t')
printf("%c%c%c\n",a[0],a[1],a[2]);
else if(b[0]!='n' && b[1]!='o' && b[2]!='t')
printf("%c%c%c\n",b[0],b[1],b[2]);
else if(c[0]!='n' && c[1]!='o' && c[2]!='t')
printf("%c%c%c\n",c[0],c[1],c[2]);
}
else
printf("%c%c%c %c%c%c %c%c%c\n",a[0],a[1],a[2],b[0],b[1],b[2],c[0],c[1],c[2]);
}
}
else
{
x=!x;
if(c[0]=='n' || c[1]=='o' || c[2]=='t')
{
x=!x;
if(x)
{
if(a[0]!='n' && a[1]!='o' && a[2]!='t')
printf("%c%c%c\n",a[0],a[1],a[2]);
else if(b[0]!='n' && b[1]!='o' && b[2]!='t')
printf("%c%c%c\n",b[0],b[1],b[2]);
else if(c[0]!='n' && c[1]!='o' && c[2]!='t')
printf("%c%c%c\n",c[0],c[1],c[2]);
}
else
printf("%c%c%c %c%c%c %c%c%c\n",a[0],a[1],a[2],b[0],b[1],b[2],c[0],c[1],c[2]);
}
else
{
if(x)
{
if(a[0]!='n' && a[1]!='o' && a[2]!='t')
printf("%c%c%c",a[0],a[1],a[2]);
else if(b[0]!='n' && b[1]!='o' && b[2]!='t')
printf("%c%c%c",b[0],b[1],b[2]);
else if(c[0]!='n' && c[1]!='o' && c[2]!='t')
printf("%c%c%c",c[0],c[1],c[2]);
}
else
printf("%c%c%c %c%c%c %c%c%c",a[0],a[1],a[2],b[0],b[1],b[2],c[0],c[1],c[2]);
}
}
}
return 0;
}
Submission Info
Submission Time
2019-02-11 20:01:52+0900
Task
A - 二重否定除去法則
User
luogu_bot5
Language
C++ (GCC 5.4.1)
Score
0
Code Size
2267 Byte
Status
WA
Exec Time
1 ms
Memory
256 KB
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:16:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s%s%s",a,b,c);
^
Judge Result
Set Name
All
Score / Max Score
0 / 100
Status
Set Name
Test Cases
All
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
Case Name
Status
Exec Time
Memory
scrambled_00.txt
AC
1 ms
256 KB
scrambled_01.txt
WA
1 ms
256 KB
scrambled_02.txt
AC
1 ms
256 KB
scrambled_03.txt
WA
1 ms
256 KB
scrambled_04.txt
WA
1 ms
256 KB
scrambled_05.txt
WA
1 ms
256 KB
scrambled_06.txt
WA
1 ms
256 KB
scrambled_07.txt
WA
1 ms
256 KB
scrambled_08.txt
WA
1 ms
256 KB
scrambled_09.txt
WA
1 ms
256 KB
scrambled_10.txt
WA
1 ms
256 KB
scrambled_11.txt
WA
1 ms
256 KB
scrambled_12.txt
WA
1 ms
256 KB
scrambled_13.txt
WA
1 ms
256 KB
scrambled_14.txt
WA
1 ms
256 KB
scrambled_15.txt
WA
1 ms
256 KB
scrambled_16.txt
WA
1 ms
256 KB
scrambled_17.txt
WA
1 ms
256 KB
scrambled_18.txt
WA
1 ms
256 KB