結果
| 問題 | No.2789 hako111223’s Master Thesis |
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2024-06-24 17:56:45 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 356 bytes |
| 記録 | |
| コンパイル時間 | 134 ms |
| コンパイル使用メモリ | 51,344 KB |
| 実行使用メモリ | 9,152 KB |
| 最終ジャッジ日時 | 2026-07-05 01:48:36 |
| 合計ジャッジ時間 | 1,182 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 2789.cc: No.2789 hako111223's Master Thesis - yukicoder
*/
#include<cstdio>
#include<algorithm>
using namespace std;
/* main */
int main() {
int a, b, c, d;
scanf("%d%d%d%d", &a, &b, &c, &d);
int l = 31 - a + b;
int x = 3;
if (l >= c) x = 1;
else if (l >= d) x = 2;
printf("%d\n", x);
return 0;
}
tnakao0123