結果

問題 No.1799 Summer Day
ユーザー 🍮かんプリン
提出日時 2022-01-07 21:35:34
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 483 bytes
コンパイル時間 1,666 ms
コンパイル使用メモリ 166,856 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-14 08:29:20
合計ジャッジ時間 2,280 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

/**
 *   @FileName	a.cpp
 *   @Author	kanpurin
 *   @Created	2022.01.07 21:35:30
**/

#include "bits/stdc++.h" 
using namespace std; 
typedef long long ll;


int main() {
    ll n,s;cin >> n >> s;
    if (n == 1) {
        if (s >= 25 && s < 30) puts("Yes");
        else puts("No");
        return 0;
    }
    n--;
    for (int i = 25; i < 30; i++) {
        if (0<=s-i && s-i<=n*29) {
            puts("Yes");
            return 0;
        }
    }
    puts("No");
    return 0;
}
0