Submission #3778723
Source Code Expand
#include <bits/stdc++.h> #include <unistd.h> #include <random> using namespace std; typedef long long int LL; typedef long long int LLint; typedef pair<int,int> intpair; typedef pair<bool,bool> boolpair; typedef pair<string,string> strpair; typedef pair<LL,LL> LLpair; typedef pair<double,double> doublepair; typedef pair<float,float> floatpair; typedef vector<int> intvector; typedef vector<bool> boolvector; typedef vector<string> strvector; typedef vector<LL> LLvector; typedef vector<double> doublevector; typedef vector<float> floatvector; #define wait(sec) usleep((sec) * 1000000) #define ED return 0; #define TEST cout << "OK" << endl; #define UP(a,b) ((a+(b-1))/b) #define SORT(vec) sort(vec.begin(),vec.end()); #define DOUBLECHANGE(count) cout << setprecision(count); #define REV(vec) reverse(vec.begin(),vec.end()); #define ipow(x,y) LL(pow(x,y)) #define INF 999999999 const long long mod = 1000000007; int main(){ // random_device rnd; // mt19937 mt(rnd()); cin.tie(0); ios::sync_with_stdio(false); int A, B, X; cin >> A >> B >> X; if(X >= A && X <= A+B){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
Submission Info
Submission Time | |
---|---|
Task | A - Cats and Dogs |
User | MEGANEnoKAMISAMA |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 1224 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | AC | 1 ms | 256 KB |
2.txt | AC | 1 ms | 256 KB |
3.txt | AC | 1 ms | 256 KB |
4.txt | AC | 1 ms | 256 KB |
5.txt | AC | 1 ms | 256 KB |
6.txt | AC | 1 ms | 256 KB |
7.txt | AC | 1 ms | 256 KB |
sample1.txt | AC | 1 ms | 256 KB |
sample2.txt | AC | 1 ms | 256 KB |
sample3.txt | AC | 1 ms | 256 KB |