結果

問題 No.2789 hako111223’s Master Thesis
ユーザー elphe
提出日時 2024-07-15 17:47:45
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 596 ms
コンパイル使用メモリ 65,324 KB
最終ジャッジ日時 2025-02-23 15:47:15
ジャッジサーバーID
(参考情報)
judge5 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main()
{
	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	int A, B, C, D;
	cin >> A >> B >> C >> D;

	if (A + C <= 31 + B)
		cout << "1\n";
	else if (A + D <= 31 + B)
		cout << "2\n";
	else
		cout << "3\n";

	return 0;
}
0