Submission #5101748
Source Code Expand
#include<bits/stdc++.h> using namespace std; #define REP(i,a,n) for(int i=a;i<n;++i) #define REPL(i,a,n) for(ll i=a;i<n;++i) #define RUP(a,b) ((a+b-1)/(b)) #define ENT "\n" #define SORTVG(v) sort(v.begin(),v.end(),greater<>()) #define SORTV(v) sort(v.begin(),v.end()) #define ALL(v) (v).begin(),(v).end() #define MOD 1000000007 #define INF LLONG_MAX/2 typedef long long ll; typedef tuple<int,int,bool> Tb; typedef pair<int,int> Pii; typedef vector<int> Vi; template<class T> void chmax(T& a, T b) {if(a < b){a=b;}} template<class T> void chmin(T& a, T b) {if(a > b){a=b;}} template<class T> void YesNo(T& a) {if(a){cout << "Yes" << ENT;}else{cout << "No" << ENT;}} template<class T> void YESNO(T& a) {if(a){cout << "YES" << ENT;}else{cout << "NO" << ENT;}} template<class T> void AorB(T& a, string A,string B) {if(a){cout << A << ENT;}else{cout << B << ENT;}} int atcoder(){ int x,y; cin>>x>>y; bool ans=false; if(x>=2*y-1) ans=true; YESNO(ans); return 0; } signed main() { cin.tie(0); ios::sync_with_stdio(false); atcoder(); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Anti-Adjacency |
User | hanaoka_ |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 1118 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 | s1.txt, s2.txt, s3.txt, s4.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, s1.txt, s2.txt, s3.txt, s4.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | AC | 1 ms | 256 KB |
02.txt | AC | 1 ms | 256 KB |
03.txt | AC | 1 ms | 256 KB |
04.txt | AC | 1 ms | 256 KB |
05.txt | AC | 1 ms | 256 KB |
06.txt | AC | 1 ms | 256 KB |
07.txt | AC | 1 ms | 256 KB |
08.txt | AC | 1 ms | 256 KB |
09.txt | AC | 1 ms | 256 KB |
10.txt | AC | 1 ms | 256 KB |
s1.txt | AC | 1 ms | 256 KB |
s2.txt | AC | 1 ms | 256 KB |
s3.txt | AC | 1 ms | 256 KB |
s4.txt | AC | 1 ms | 256 KB |