forked from avalon-icpp-spr19/homework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource.cpp
More file actions
117 lines (99 loc) · 2.43 KB
/
Source.cpp
File metadata and controls
117 lines (99 loc) · 2.43 KB
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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
//¹1
//#include <iostream>
//using namespace std;
//
//int main() {
// int sum,a; cin >> a;
// cout << a / 100 + (a / 10) % 10 + a % 10; //noiia oeo? ?enea
// while (1);
// return 0;
//}
//¹2
//#include <iostream>
//using namespace std;
//
//int main()
//{
// int hours1, minuts1, seconds1, hours2, seconds2, minuts2, SizeBetweenDaten;
// cin >> hours1 >> minuts1 >> seconds1;
// cin >> hours2 >> minuts2 >> seconds2;
// SizeBetweenDaten = (hours2 * 3600 + minuts2 * 60 + seconds2) -
// (hours1 * 3600 + minuts1 * 60 + seconds1);
//
// cout << SizeBetweenDaten << endl;
//
// while (1);
// return 0;
//}
//¹3
//#include <iostream>
//#include <cmath>
//using namespace std;
//
//int main() {
// int year, day, month, JDateInt,a,y,m;
// cin >> day >> month >> year;
// a = (14 - month) / 12;
// y = year + 4800 - a;
// m = month + 12 * a - 3;
// JDateInt = day + ((153 * m + 2) / 5) + (365 * y) + (y / 4) - (y / 100) + (y / 400) - 32045;
//
// cout << JDateInt;
//
// while (1);
// return 0;
//}
//¹4
//#include <iostream>
//using namespace std;
//
//int main() {
// int a, hours, minutes1, minutes2, seconds1, seconds2, seconds;
// cin >> a;
// hours = a / 3600;
// minutes1 = (a - ((a / 3600) * 3600)) / 600;
// minutes2 = (a - ((a / 3600) * 3600)) / 60;
// seconds = a - (((a - ((a / 3600) * 3600)) / 60) * 60);
// seconds1 = seconds/10;
// seconds2 = seconds % 10;
// cout << hours << ":" << minutes1 << minutes2 << ":" << seconds1 << seconds2 << endl;
// while (1);
// return 0;
//}
//¹5
//#include <iostream>
//using namespace std;
//
//int main() {
// int a,chetch;
// cin >> a;
// chetch = (a / 2) * 2 + 2;
// cout << chetch;
//
// while (1);
// return 0;
//}
//¹6
//#include <iostream>
//
//using namespace std;
//
//int main() {
// int a, PartOfc1, PartOfc2; cin >> a;
// PartOfc1 = a / 1000 + (a / 100) % 10;
// PartOfc2 = a % 10 + ((a / 10) % 10);
// cout << PartOfc1 - PartOfc2 + 1 << endl;
// while (1);
// return 0;
//}
//¹6-äîïîëíèòåëüíîå çàäàíèå, íà îòäåëüíóþ îöåíêó.
//#include <iostream>
//using namespace std;
//int main() {
// setlocale(LC_ALL, "rus");
// int hight, up, down, result; cin >> hight >> up >> down;
// result = 1 + (hight - down - 1) / (up - down);
// cout << "Óëèòêà äîéäåò äî âûñîòû " << hight << " çà âîò ýòî êîëè÷åñòâî äíåé :) : " << result;
// while (1);
// return 0;
//}