Advertisement
raisul82

UVA 12531 - Hours and Minutes

Mar 25th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int t,n;
  6. while(scanf("%d",&n)==1)
  7. {
  8. if((30*n)%180==0)
  9. {
  10. printf("Y\n");
  11. }
  12. else
  13. {
  14. printf("N\n");
  15. }
  16. }
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement