Created
July 17, 2019 08:15
-
-
Save tungaqhd/7711c2fb1eef0911f8205f9fe0429d8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
int a[10]; | |
int main() | |
{ | |
int T, i; | |
cin>>T; | |
while(T--) | |
{ | |
memset(a, 0, sizeof(a)); | |
int nhap; | |
for(i=0;i<4;i++) | |
{ | |
cin>>nhap; | |
a[nhap] = 1; | |
} | |
if(a[0]+a[1]+a[2]+a[9] == 4) | |
cout<<"PIG PIG PIG"<<endl; | |
else | |
cout<<"NO NO NO"<<endl; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment