- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
#include <iostream>
#include <string>
std::string lol;
int x;
int y=1994;
int main()
{
//std::string winter = "winter";
//std::string summer = "summer";
int z;
std::cin >> x;
while (true){
//---------------------------
//check
if ((x>=1896) and (x<1924)){z=x%4;if(z!=0){break;}}
if ((x>=1924) and (x<1992)){z=x%4;if(z!=0){break;}}
if ((x<=1994) and (x<1992)){z=x%2;if(z!=0){break;}}
//check
//---------------------------
if ((x>=1896) and (x<1924)){
y=1896;
while(true){
lol="summer";
if (y==x)
{
std::cout << lol;
break;
}
y=y+4;
lol="winter";
if (y==x)
{
std::cout << lol;
break;
}
y=y+2;
}
break;
}
//--------------------------------------
if ((x>=1924) and (x<1992)){
y=1924;
while(true){
lol="winter";
if (y==x)
{
std::cout << lol;
break;
}
y=y+4;
lol="summer";
if (y==x)
{
std::cout << lol;
break;
}
y=y+2;
}
break;
}break;
//-------------------------
//----------------------------
if (x>=1994){
lol="winter";
if (y==x)
{
std::cout << lol;
break;
}
y=y+2;
lol="summer";
if (y==x)
{
std::cout << lol;
break;
}
y=y+2;
}
}
}
barop 29.09.2016 23:19 # +3
3oJIoTou_xyu 29.09.2016 23:33 # +4
Пользуйтесь на здоровье
CrashTesterAnusov 30.09.2016 00:43 # −71
Steve_Brown 03.10.2016 10:41 # 0
Он сказал "зима"! Хыхыхы, как смешно, хыхы...
guest 04.10.2016 02:27 # −1
у того на хуе флюс
Psionic 09.10.2016 22:27 # 0