diff --git a/Codeforces/1075A.cpp b/Codeforces/1075A.cpp new file mode 100644 index 0000000..3630f18 --- /dev/null +++ b/Codeforces/1075A.cpp @@ -0,0 +1,52 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace std; + +#define sp system("pause") +#define FOR(i,a,b) for(int i=a;i<=b;++i) +#define FORD(i,a,b) for(int i=a;i>=b;--i) +#define REP(i,n) FOR(i,0,(int)n-1) +#define pb(x) push_back(x) +#define mp(a,b) make_pair(a,b) +#define MS0(x) memset(x,0,sizeof(x)) +#define MS1(x) memset(x,1,sizeof(x)) +#define SORT(a,n) sort(begin(a),begin(a)+n) +#define REV(a,n) reverse(begin(a),begin(a)+n) +#define ll long long +#define pii pair +#define MOD 1000000007 + +int a[101]; + +int main(){ + + ll int n,x,y; + cin>>n>>x>>y; + ll int bmove,wmove; + wmove=min(abs(x-1),abs(y-1)); + bmove=min(abs(x-n),abs(y-n)); + + if(wmove<=bmove){ + cout<<"White\n"; + } + else{ + cout<<"Black"; + } + return 0; +} diff --git a/Codeforces/1294A.cpp b/Codeforces/1294A.cpp new file mode 100644 index 0000000..58c680e --- /dev/null +++ b/Codeforces/1294A.cpp @@ -0,0 +1,51 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace std; + +#define sp system("pause") +#define FOR(i,a,b) for(int i=a;i<=b;++i) +#define FORD(i,a,b) for(int i=a;i>=b;--i) +#define REP(i,n) FOR(i,0,(int)n-1) +#define pb(x) push_back(x) +#define mp(a,b) make_pair(a,b) +#define MS0(x) memset(x,0,sizeof(x)) +#define MS1(x) memset(x,1,sizeof(x)) +#define SORT(a,n) sort(begin(a),begin(a)+n) +#define REV(a,n) reverse(begin(a),begin(a)+n) +#define ll long long +#define pii pair +#define MOD 1000000007 + +//int a[100000]; + +int main(){ + + int t, a,b,c,n; + cin>>t; + REP(tc, t){ + cin>>a>>b>>c>>n; + int sum=a+b+c+n; + if(sum%3!=0 || sum/3 +using namespace std; + +int main() { + int n; + cin >> n; + cout << n / 2 + 1 << endl; + return 0; +}