結果
問題 | No.1979 [Cherry 4th Tune A] I min ! |
ユーザー | GEX777 |
提出日時 | 2022-06-17 21:21:51 |
言語 | C++17(clang) (17.0.6 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 2,505 bytes |
コンパイル時間 | 1,223 ms |
コンパイル使用メモリ | 142,760 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-04-17 12:45:47 |
合計ジャッジ時間 | 2,018 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
5,248 KB |
testcase_01 | AC | 1 ms
5,376 KB |
testcase_02 | AC | 1 ms
5,376 KB |
testcase_03 | AC | 1 ms
5,376 KB |
testcase_04 | AC | 1 ms
5,376 KB |
testcase_05 | AC | 2 ms
5,376 KB |
testcase_06 | AC | 1 ms
5,376 KB |
testcase_07 | AC | 1 ms
5,376 KB |
testcase_08 | AC | 1 ms
5,376 KB |
testcase_09 | AC | 2 ms
5,376 KB |
testcase_10 | AC | 1 ms
5,376 KB |
testcase_11 | AC | 2 ms
5,376 KB |
testcase_12 | AC | 1 ms
5,376 KB |
testcase_13 | AC | 2 ms
5,376 KB |
testcase_14 | AC | 2 ms
5,376 KB |
testcase_15 | AC | 1 ms
5,376 KB |
testcase_16 | AC | 1 ms
5,376 KB |
testcase_17 | AC | 1 ms
5,376 KB |
testcase_18 | AC | 1 ms
5,376 KB |
testcase_19 | AC | 1 ms
5,376 KB |
testcase_20 | AC | 1 ms
5,376 KB |
testcase_21 | AC | 1 ms
5,376 KB |
testcase_22 | AC | 1 ms
5,376 KB |
testcase_23 | AC | 1 ms
5,376 KB |
ソースコード
// 2022-05-30 update #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <cmath> #include <set> #include <map> #include <unordered_map> #include <string> #include <sstream> #include <climits> #include <bitset> #include <deque> #include <cassert> #include <list> #include <queue> using namespace std; typedef long long ll; typedef unsigned long long ull; constexpr double PI = 3.141592653589793; // const ll MOD = 998244353; constexpr ll MOD = 1'000'000'007; bool DEBUG = true; // Vecterの中身を表示 void print(const std::vector<ll>& v) { std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; }); std::cout << std::endl; } void print(const std::vector<int>& v) { std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; }); std::cout << std::endl; } // 1~Nまでの総和を求める ll sum_from_1_to_N(ll N) { if (N < 1LL) { return 0; } if ((N & 1) == 0) // even { return N / 2 * (N + 1); } else // odd { return (N + 1) / 2 * N; } } // 1~Nまでの総和を求める ll sum_from_A_to_B(ll A, ll B) { return sum_from_1_to_N(B) - sum_from_1_to_N(A); } // a^bを求める ll intPOW(int a, int b) { ll number = 1LL; for (int i = 2; i <= b; i++) { number *= a; } return number; } // C(n, m)を求める ll combination(ll n, ll m) { ll up = 2; ll down = 2; for (int i = n; i > n - m; i--) { up *= i; } for (int i = m; i >= 2; i--) { down *= i; } return up / down; } // a,bの最大公約数を求める long long GCD(long long a, long long b) { if (b == 0) return a; else return GCD(b, a % b); } //最小公倍数 ll LCM(ll a, ll b) { return a * b / GCD(a, b); } //素数判定, P->true, not_P->false bool check_Prime(ll N) { if (N == 2) return true; if (N == 1 || (N & 1) == 0) return false; for (ll i = 3; i <= sqrt(N); i += 2) { if (N % i == 0) return false; } return true; } //エラストステネス and 高速素因数分解 // prime->IsPrime[i]=i; not prime ->最小の素因数 vector<int> Eratosthenes(size_t max_number) { vector<int> IsPrime(max_number + 1); // tableの初期化 for (int i = 1; i < IsPrime.size(); ++i) { IsPrime[i] = i; } for (int i = 2; i <= sqrt(max_number); ++i) { for (int j = i; j <= max_number; j += i) { if (IsPrime[j] == j) { IsPrime[j] = i; } } } return IsPrime; } int main() { int I, J, K; cin >> I >> J >> K; if (I <= J && I <= K) { puts("Yes"); } else { puts("No"); } }