結果

問題 No.773 コンテスト
ユーザー eyeSharp
提出日時 2019-10-16 21:17:41
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 360 bytes
コンパイル時間 1,409 ms
コンパイル使用メモリ 157,672 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-23 03:42:15
合計ジャッジ時間 2,584 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

/*
    No.773 コンテスト
    https://yukicoder.me/problems/no/773
*/
#include <bits/stdc++.h>
using namespace std;

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

    int a, b;
    cin >> a >> b;
    int sum = 3;
    for (int i = a; i <= b; i++) {
        if (23 <= i && i <= 25) {
            sum--;
        }
    }
    cout << sum << endl;
}
0