結果

問題 No.773 コンテスト
ユーザー outline
提出日時 2020-03-19 00:44:20
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 685 bytes
コンパイル時間 1,479 ms
コンパイル使用メモリ 166,576 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-14 02:52:25
合計ジャッジ時間 2,227 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
    int a, b;
    cin >> a >> b;
    if(a > 25 || b < 23){
        cout << 3 << endl;
        return 0;
    }
    if(a < 23){
        if(b > 25){
            cout << 0 << endl;
            return 0;
        }
        if(b < 23){
            cout << 3 << endl;
            return 0;
        }
        cout << 25 - b << endl;
        return 0;
    }
    if(b > 25){
        if(a > 25){
            cout << 3 << endl;
        }
        else    cout << a - 23 << endl;
    }
    else{
        if(a < 23){
            cout << 25 - b << endl;
        }
        else{
            cout << (a - 23) + (25 - b) << endl;
        }
    }
}
0