UVA 12531 - Hours and Minutes

Problem PDF

Solution:

#include
#include
#include
#include
#include
#include
#include
#include
#include
#include 
#include 
#include
#define ll long long
#define sc scanf
#define pf printf
#define Pi 2*acos(0.0)
using namespace std;
int main()
{
    int t;
    while(sc("%d",&t)==1)
    {
        if(t%6==0)
        pf("Y\n");
        else
        pf("N\n");
    }
  return 0;
}
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/12531/12531.cpp