MapleStory Finger Point

๐Ÿƒ‍โ™‚๏ธBaekjoon/C++

[2884/Cpp] ์•Œ๋žŒ ์‹œ๊ณ„

HYEJU01 2021. 9. 3. 03:50
#include <stdio.h>
using namespace std;
int main(){
int a,b;

scanf("%d %d" , &a, &b);

//45 +
if (b >= 45) {
	b-=45;
	printf("%d %d", a ,b);
}
else if (a == 0) {
	a += 23;
	b = (60+b)-45;
	printf("%d %d", a ,b);
}
else {
	a -= 1;
	b = (60+b)-45;
	printf("%d %d", a ,b);
}

return 0;
}