Skip to content

Commit a1964fb

Browse files
committed
Initial Commit
1 parent 26345cf commit a1964fb

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Remaining Time.cpp

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#include<bits/stdc++.h>
2+
#include<ext/pb_ds/assoc_container.hpp>
3+
#include<ext/pb_ds/tree_policy.hpp>
4+
5+
#define int long long int
6+
#define double double_t
7+
#define INF 1e18
8+
using namespace __gnu_pbds;
9+
using namespace std;
10+
template<typename T>
11+
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
12+
13+
int GCD(int a, int b) {
14+
return b == 0 ? a : GCD(b, a % b);
15+
}
16+
17+
int power(int x, int y, int MOD) {
18+
if (y == 0) {
19+
return 1;
20+
}
21+
if (y % 2 == 0) {
22+
return power((x * x) % MOD, y / 2, MOD) % MOD;
23+
} else {
24+
return (x * power((x * x) % MOD, (y - 1) / 2, MOD) % MOD) % MOD;
25+
}
26+
}
27+
28+
int32_t main() {
29+
ios_base::sync_with_stdio(false);
30+
cin.tie(nullptr);
31+
cout.tie(nullptr);
32+
int t = 1;
33+
while (t--) {
34+
int a,b;
35+
cin >> a>>b;
36+
cout<<(a+b)%24;
37+
cout << "\n";
38+
}
39+
}

0 commit comments

Comments
 (0)