Submission #32888485


Source Code Expand

#include<bits/stdc++.h>
using namespace std;

template <typename T>
inline void read(T &a) {
	char c;for (c = getchar(); (c < '0' || c > '9') && c != '-'; c = getchar());bool f = c == '-';T x = f ? 0 : (c ^ '0');for (c = getchar(); c >= '0' && c <= '9'; c = getchar()) {x = x * 10 + (c ^ '0');}a = f ? -x : x;
}
template <typename T, typename ...Argv>
inline void read(T &a, Argv &...argv) {
	read(a), read(argv...);
}

int n;
int fir, sec;
signed main() {
	read(n);
	if (n >= 60) {
		n -= 60;
		fir = 22;
	} else {
		fir = 21;
	}
	if (n < 10) {
		printf("%d:0%d\n", fir, n);
	} else {
		printf("%d:%d\n", fir, n);
	}
}

Submission Info

Submission Time
Task A - When?
User rsdbk_husky
Language C++ (GCC 9.2.1)
Score 100
Code Size 648 Byte
Status AC
Exec Time 5 ms
Memory 3732 KiB

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 3572 KiB
example_01.txt AC 2 ms 3604 KiB
example_02.txt AC 2 ms 3632 KiB
test_00.txt AC 2 ms 3716 KiB
test_01.txt AC 2 ms 3540 KiB
test_02.txt AC 2 ms 3716 KiB
test_03.txt AC 3 ms 3528 KiB
test_04.txt AC 3 ms 3732 KiB
test_05.txt AC 2 ms 3504 KiB
test_06.txt AC 2 ms 3480 KiB