Submission #32892104


Source Code Expand

Copy
//g++ -std=c++17 -Wl,--stack,268435456 Ahoyy.cpp -o Ahoyy.exe
#include<bits/stdc++.h>
using namespace std;
typedef long double ld;
typedef long long ll;
typedef unsigned long long ull;
#define pii pair<int,int>
#define pll pair<ll,ll>
#define pld pair<ld,ld>
#define pb push_back
#define fi first
#define se second
#define UP(a,b,c) for(ll (a)=(b);(a)<(c);++(a))
#define UU(a,b,c) for(ll (a)=(b);(a)<=(c);++(a))
#define DN(a,b,c) for(ll (a)=(b);(a)>(c);--(a))
#define DU(a,b,c) for(ll (a)=(b);(a)>=(c);--(a))
#define lc(i) i+1
#define rc(i) i+(m-l+1)*2
#include <ext/pb_ds/assoc_container.hpp>
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//g++ -std=c++17 -Wl,--stack,268435456 Ahoyy.cpp -o Ahoyy.exe

#include<bits/stdc++.h>
using namespace std;
typedef long double ld;
typedef long long ll;
typedef unsigned long long ull;
#define pii pair<int,int>
#define pll pair<ll,ll>
#define pld pair<ld,ld>
#define pb push_back
#define fi first
#define se second
#define UP(a,b,c) for(ll (a)=(b);(a)<(c);++(a))
#define UU(a,b,c) for(ll (a)=(b);(a)<=(c);++(a))
#define DN(a,b,c) for(ll (a)=(b);(a)>(c);--(a))
#define DU(a,b,c) for(ll (a)=(b);(a)>=(c);--(a))
#define lc(i) i+1
#define rc(i) i+(m-l+1)*2

#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;

#define ordered_set tree<int, null_type, less_equal<int>, rb_tree_tag, tree_order_statistics_node_update>


mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

ll expo(ll a, ll b, ll mod) {
	if(b == 0) return 1;
	if(b == 1) return a % mod;
	ll ret = expo(a, b>>1, mod);
	ret *= ret;
	if(ret >= mod) ret %= mod;
	if(b & 1) {
		ret *= a;
		if(ret >= mod) ret %= mod;
	}
	return ret;
}

ll inv(ll v, ll mod) {
	return expo(v, mod - 2, mod);
}

void reset() {
}

void input() {
	ll x;
	cin >> x;
	ll h = x / 60;
	ll m = x % 60;

	printf("%lld:%02lld", h+21, m);
}

void solve() {
}

void Ahoy() {
	solve();
}

int main() {
	ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
	// freopen("in.txt", "r", stdin);
	// freopen("out1.txt", "w", stdout);

	int TC = 1;
	// cin >> TC;
	UU(t, 1, TC) {
		// cout << "Case #" << t << ": ";
		input();
		Ahoy();
		reset();	
	}

	return 0;
}

Submission Info

Submission Time
Task A - When?
User kresna
Language C++ (GCC 9.2.1)
Score 100
Code Size 1648 Byte
Status AC
Exec Time 5 ms
Memory 3772 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:15:26: warning: unnecessary parentheses in declaration of ‘t’ [-Wparentheses]
   15 | #define UU(a,b,c) for(ll (a)=(b);(a)<=(c);++(a))
      |                          ^
./Main.cpp:73:2: note: in expansion of macro ‘UU’
   73 |  UU(t, 1, TC) {
      |  ^~

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, test_00.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt
Case Name Status Exec Time Memory
example_00.txt AC 5 ms 3772 KB
example_01.txt AC 2 ms 3472 KB
example_02.txt AC 2 ms 3528 KB
test_00.txt AC 2 ms 3704 KB
test_01.txt AC 2 ms 3628 KB
test_02.txt AC 2 ms 3548 KB
test_03.txt AC 2 ms 3576 KB
test_04.txt AC 2 ms 3664 KB
test_05.txt AC 2 ms 3732 KB
test_06.txt AC 2 ms 3628 KB


2025-02-28 (Fri)
05:16:40 +00:00