-
Notifications
You must be signed in to change notification settings - Fork 14
/
10070.cpp
27 lines (24 loc) · 859 Bytes
/
10070.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include<iostream>
using namespace std;
int main(){
long long y=0;
while(cin>>y){
long long a=0,b=0,c=0;
if(((y%400)==0) || (y%4==0 && y%100!=0)){
a=1;
cout<<"This is leap year."<<endl;
}
if(y%15==0){
b=1;
cout<<"This is huluculu festival year."<<endl;
}
if(y%55==0 && a==1){
c=1;
cout<<"This is bulukulu festival year."<<endl;
}
if(a==0 && b==0 && c==0)
cout<<"This is an ordinary year."<<endl;
cout<<endl;
}
return 0;
}