結果

問題 No.2789 hako111223’s Master Thesis
ユーザー lingfunny
提出日時 2024-06-21 21:22:40
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 445 bytes
コンパイル時間 2,550 ms
コンパイル使用メモリ 242,720 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-21 21:22:44
合計ジャッジ時間 3,174 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

// Problem: No.2789 hako111223’s Master Thesis
// Group: yukicoder
// URL: https://yukicoder.me/problems/no/2789
// Memory Limit: 512 MB
// Time Limit: 2000 ms
// Author: lingfunny
// 
// Powered by CP Editor (https://cpeditor.org)

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

int a, b, c, d;

int main() {
	scanf("%d%d%d%d", &a, &b, &c, &d);
	a = b + 31 - a;
	if (a < d) puts("3");
	else if (a < c) puts("2");
	else puts("1");
	return 0;
}
0