Skip to content

Instantly share code, notes, and snippets.

@tungaqhd
Created July 17, 2019 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tungaqhd/7711c2fb1eef0911f8205f9fe0429d8c to your computer and use it in GitHub Desktop.
Save tungaqhd/7711c2fb1eef0911f8205f9fe0429d8c to your computer and use it in GitHub Desktop.
#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