문제설명 소스코드 #include using namespace std; int main() { int H; int M; int input; cin >> H >> M >> input; if (M + input > 59) { H = H + ((M + input) / 60); M = (M + input) % 60; if (H > 23) H = H - 24; cout
문제설명 본인은 맞다고 생각하는데 계속 틀렸다고 나온다면, 아래의 글을 읽는 것을 추천한다. https://www.acmicpc.net/board/view/100873 글 읽기 - ※ 알람 시계 - 지금 막 질문을 올리려는 당신을 위해 댓글을 작성하려면 로그인해야 합니다. www.acmicpc.net 소스코드 #include using namespace std; int main() { int H, M; cin >> H >> M; if (M - 45 < 0) { M = 60 - (45 - M); if (H - 1 < 0) { H = 23; cout
문제설명 소스코드 #include using namespace std; int main() { int x, y; cin >> x >> y; if (x < 0 && y < 0) { cout 0) { cout
문제 설명 소스코드 #include using namespace std; int main() { long long a; long long b; long long c; cin >> a >> b >> c; cout
먼저 이 코드를 보면 쉬울 것이다. #include using namespace std; int main() { int year = 20; if (year % 4 == 0 && (true || true))cout
전형적인 if문 문제 #include using namespace std; int main() { int score; cin >> score; if (score = 90)cout = 80)cout = 70)cout = 60)cout
간단한 if문 문제 #include using namespace std; int main() { int a, b; cin >> a >> b; if (a < b)cout b) cout
#include using namespace std; int main() { cout