結果
問題 | No.1799 Summer Day |
ユーザー |
|
提出日時 | 2024-03-20 18:46:52 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 472 bytes |
コンパイル時間 | 4,476 ms |
コンパイル使用メモリ | 250,496 KB |
最終ジャッジ日時 | 2025-02-20 08:14:56 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll = long long; using ld = long double; int N, S; int main() { cin >> N >> S; int A = S / N; int R = S - A * N; if (25 <= A && A < 30) { if (A == 29 && R > 0) cout << "No" << endl; else cout << "Yes" << endl; } else if (A >= 30) cout << "No" << endl; else { if (S - 25 >= 0) cout << "Yes" << endl; else cout << "No" << endl; } return 0; }