Submission #1282210
Source Code Expand
#include <cstdio> #include <vector> #include <string> #include <cmath> #include <cstdlib> #include <utility> #include <algorithm> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<ii> vii; typedef vector<int> vi; #define INF 1000000000 // ans = a ? b : c; // to simplify: if (a) ans = b; else ans = c; int main(int argc, char const *argv[]) { int a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%s\n", (c >= a && c <= b) ? "Yes" : "No"); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Between Two Integers |
User | vcoppe |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 520 Byte |
Status | AC |
Exec Time | 0 ms |
Memory | 128 KB |
Compile Error
./Main.cpp: In function ‘int main(int, const char**)’: ./Main.cpp:23:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &a, &b, &c); ^
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt, sample_03.txt |
All | sample_01.txt, sample_02.txt, sample_03.txt, subtask_1_1.txt, subtask_1_2.txt, subtask_1_3.txt, subtask_1_4.txt, subtask_1_5.txt, subtask_1_6.txt, subtask_1_7.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 0 ms | 128 KB |
sample_02.txt | AC | 0 ms | 128 KB |
sample_03.txt | AC | 0 ms | 128 KB |
subtask_1_1.txt | AC | 0 ms | 128 KB |
subtask_1_2.txt | AC | 0 ms | 128 KB |
subtask_1_3.txt | AC | 0 ms | 128 KB |
subtask_1_4.txt | AC | 0 ms | 128 KB |
subtask_1_5.txt | AC | 0 ms | 128 KB |
subtask_1_6.txt | AC | 0 ms | 128 KB |
subtask_1_7.txt | AC | 0 ms | 128 KB |