提出 #65639775
ソースコード 拡げる
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define debug(x) cerr << (#x) << " " << (x) << endl #define SZ(s) ((int)s.size()) #define pb push_back #define ff first #define ss second #define int long long using namespace std; using ll = long long; using pii = pair<int, int>; using vi = vector<int>; const int MOD = 998244353; const int N = 3e5 + 100; const int MASSIVE = 1e18; void solve(int test_case) { int r, x; cin >> r >> x; if(x == 1){ cout << (1600 <= r && r <= 2999 ? "Yes" : "No"); } else { cout << (1200 <= r && r <= 2399 ? "Yes" : "No"); } } signed main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int t = 1; //cin >> t; for (int i = 1; i <= t; i++) { solve(i); cout << "\n"; //cerr << "_________________________________________\n"; } return 0; }
提出情報
提出日時 | |
---|---|
問題 | A - Is it rated? |
ユーザ | batman3737 |
言語 | C++ 20 (gcc 12.2) |
得点 | 100 |
コード長 | 922 Byte |
結果 | AC |
実行時間 | 1 ms |
メモリ | 3604 KiB |
コンパイルエラー
Main.cpp: In function ‘void solve(long long int)’: Main.cpp:18:16: warning: unused parameter ‘test_case’ [-Wunused-parameter] 18 | void solve(int test_case) { | ^
ジャッジ結果
セット名 | Sample | All | ||||
---|---|---|---|---|---|---|
得点 / 配点 | 0 / 0 | 100 / 100 | ||||
結果 |
|
|
セット名 | テストケース |
---|---|
Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt |
All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_test_00.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 01_test_11.txt, 01_test_12.txt, 01_test_13.txt, 01_test_14.txt, 01_test_15.txt, 01_test_16.txt, 01_test_17.txt |
ケース名 | 結果 | 実行時間 | メモリ |
---|---|---|---|
00_sample_00.txt | AC | 1 ms | 3476 KiB |
00_sample_01.txt | AC | 1 ms | 3524 KiB |
00_sample_02.txt | AC | 1 ms | 3528 KiB |
00_sample_03.txt | AC | 1 ms | 3508 KiB |
01_test_00.txt | AC | 1 ms | 3464 KiB |
01_test_01.txt | AC | 1 ms | 3472 KiB |
01_test_02.txt | AC | 1 ms | 3464 KiB |
01_test_03.txt | AC | 1 ms | 3460 KiB |
01_test_04.txt | AC | 1 ms | 3388 KiB |
01_test_05.txt | AC | 1 ms | 3388 KiB |
01_test_06.txt | AC | 1 ms | 3532 KiB |
01_test_07.txt | AC | 1 ms | 3452 KiB |
01_test_08.txt | AC | 1 ms | 3416 KiB |
01_test_09.txt | AC | 1 ms | 3604 KiB |
01_test_10.txt | AC | 1 ms | 3440 KiB |
01_test_11.txt | AC | 1 ms | 3420 KiB |
01_test_12.txt | AC | 1 ms | 3392 KiB |
01_test_13.txt | AC | 1 ms | 3468 KiB |
01_test_14.txt | AC | 1 ms | 3444 KiB |
01_test_15.txt | AC | 1 ms | 3600 KiB |
01_test_16.txt | AC | 1 ms | 3404 KiB |
01_test_17.txt | AC | 1 ms | 3476 KiB |