Source stringclasses 1
value | Date int64 2.01k 2.02k | Text stringlengths 22 783k | Token_count int64 20 394k |
|---|---|---|---|
Project_CodeNet | 2,018 | #include<iostream>
#include<algorithm>
#include<cmath>
#include<string>
#include<array>
#include<vector>
#include<functional>
#include<unordered_map>
#include<map>
#include<numeric>
#include<limits>
#include<utility>
#include<queue>
#include<random>
using namespace std;
int main(){
int a,b;
cin >> a;
c... | 180 |
Project_CodeNet | 2,019 | #include <iostream>
#include <vector>
#include <set>
#include <utility>
#include <string>
#include <algorithm>
#include <cmath>
typedef long long ll;
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
if (a == 1) a += 13;
if (b == 1) b += 13;
if (a > b) cout << "Alice";
else if (a =... | 124 |
Project_CodeNet | 2,017 | #include<iostream>
#include<iomanip>
#include<map>
#include<set>
#include<string>
#include<algorithm>
#include<cmath>
#include<vector>
#include<queue>
#include<stack>
using namespace std;
#define P(p) cout<<(p)<<endl
#define rep(i,m,n) for(int i = (m); i < (int)(n); i++)
#define rrep(i,m,n) for(int i=(int)(m); i>=(... | 310 |
Project_CodeNet | 2,019 | #include<iostream>
#include<string>
#include<typeinfo>
#include<vector>
#include<algorithm>
#include<map>
#include<iomanip>
typedef long long int ll;
using namespace std;
int main()
{
int a,b;
cin >> a >> b;
if(a==b){
cout << "Draw" << endl;
}else if(a==1){
cout << "Alice" << endl;
}else if(b==1){
co... | 135 |
Project_CodeNet | 2,017 | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <array>
#include <cmath>
#include <iterator>
#include <utility>
#include <set>
#include <random>
#include <map>
#include <stack>
#include <queue>
#include <list>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
... | 205 |
Project_CodeNet | 2,018 | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a==b)
cout<<"Draw";
else{
if(a==1||b==1)
{
if(a==1) cout<<"Alice";
else cout<<"Bob";
}
else if(a>b) cout<<"Alice";
else cout<<"Bob";
}
retu... | 94 |
Project_CodeNet | 2,019 | #include<iostream>
using namespace std;
int main(){
int a,b;
cin >> a;
cin >> b;
if(a==1)a+=13;
if(b==1)b+=13;
if(a>b)cout << "Alice" << endl;
else if (a<b)cout << "Bob" << endl;
else cout << "Draw" <<endl;
} | 82 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
#include <math.h>
#include <cmath>
using namespace std;
using ll =long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vvl = vector<vl>;
using vs = vector<string>;
using vvs = vector<vs>;
using vc = vector<char>;
using vvc = vector<vc>;
using vb = vecto... | 932 |
Project_CodeNet | 2,019 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A; int B;
cin>>A>>B;
if(A!=1&&B!=1){
if(A>B)
cout<<"Alice"<<endl;
else if(A<B)
cout<<"Bob"<<endl;
else cout<<"Draw"<<endl;
}
else if (A==1||B==1){
if(A==1&&B!=1)
cout<<"Alice"<<endl;
else if(A!=1&&B==1)
c... | 133 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a = 0, b = 0;
cin >> a >> b;
if (a == b) {
cout << "Draw" << endl;
} else if (b == 1) {
cout << "Bob" << endl;
} else if (a == 1) {
cout << "Alice" << endl;
} else {
if (a > b) {
cout <<... | 130 |
Project_CodeNet | 2,019 | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <queue>
#include <tuple>
#include <cstring>
#define INF 100000000
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
if (a == b)
cout << "Draw\n";
else if (a == 1... | 141 |
Project_CodeNet | 2,019 | #include<bits/stdc++.h>
using namespace std;
int main() {
int A=0, B=0;
cin >> A >> B;
if(A == B) {
cout << "Draw" << endl;
} else if(A == 1) {
cout << "Alice" << endl;
} else if(B == 1) {
cout << "Bob" << endl;
}else if(A < B) {
cout << "Bob" << e... | 144 |
Project_CodeNet | 2,019 | #include <bits/stdc++.h>
using namespace std;
int main()
{
int A, B;
cin >> A >> B;
if(A==1){
A = 14;
}
if(B==1){
B = 14;
}
if(A>B){
cout << "Alice" << endl;
}
else if(A<B){
cout << "Bob" << endl;
}
else if(A==B){
cout << "Draw" << end... | 108 |
Project_CodeNet | 2,019 | // SeeAlso: https://atcoder.jp/contests/abc054/tasks/abc054_a
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
#define MAX 100000
#define NIL -1
typedef int _loop_int;
#define REP(i,n) for(int i = ... | 524 |
Project_CodeNet | 2,020 | #pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define pii pair<int,int>
#define pp pair<pair<ll, ll>,pair<ll, ll>>
#define pll pair<ll,ll>
#define pdd pair<double,double>
#define vii... | 732 |
Project_CodeNet | 2,017 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a == b) {
puts("Draw");
return 0;
}
if (a == 1) {
puts("Alice");
return 0;
}
if (b == 1) {
puts("Bob");
return 0;
}
puts((a > b ? "Alice" : "Bob"));
}
| 99 |
Project_CodeNet | 2,017 | #include <cstdio>
#include <cstring>
#include <queue>
#include <algorithm>
using namespace std;
int a, b;
int main() {
while(2 == scanf("%d%d", &a, &b)) {
if(a == 1) {
a = 14;
}
if(b == 1) {
b = 14;
}
if(a > b) {
printf("Alice\n");
... | 128 |
Project_CodeNet | 2,020 | #include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
#include <cmath>
#define rep(i, n) for(int i=0;i<(int)(n);i++)
using namespace std;
int A, B;
int compare(int a, int b) {
if (a == b) return 0;
if (a == 1) return 1;
if (b == 1) return -1;
return a - b;
}
int main() {
c... | 174 |
Project_CodeNet | 2,020 | #define _GIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(void) {
int a, b;
cin >> a >> b;
a = a == 1 ? 14 : a;
b = b == 1 ? 14 : b;
if (... | 171 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
using namespace std;
//conversion
//------------------------------------------
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
//math
//-------------------------------------... | 500 |
Project_CodeNet | 2,019 | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a == 1) { a = 14; }
if (b == 1) { b = 14; }
if (a == b) {
cout << "Draw" << endl;
} else if (a > b) {
cout << "Alice" << endl;
} else {
cout << "Bob" << endl;
}
} | 109 |
Project_CodeNet | 2,018 | // Example program
#include <iostream>
#include <string>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a==b)cout<<"Draw"<<endl;
else if(a==1&&b!=1||a!=1&&b!=1&&a>b)cout<<"Alice"<<endl;
else if(a!=1&&b==1||a!=1&&b!=1&&a<b)cout<<"Bob"<<endl;
return 0;
}
| 106 |
Project_CodeNet | 2,019 | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <stack>
#include <queue>
#include <cmath>
#include <tuple>
#include <cstdio>
#include <bitset>
#include <sstream>
#include <iterator>
#include <numeric>
#include <map>
#include <cstring>
#include <set>
#include <functional>
#include <... | 467 |
Project_CodeNet | 2,017 | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;cin >>a >> b;
if(a == 1 && b != 1){
cout << "Alice" << endl;
}
else if(a != 1 && b == 1){
cout << "Bob" << endl;
}
else if (a == b){
cout << "Draw" << endl;
}
else{
if(a > b) cout << "Alice" << endl;
else cout << "Bob" << endl;
}
} | 116 |
Project_CodeNet | 2,019 | #include <bits/stdc++.h>
#define INF 1e9
using namespace std;
typedef long long ll;
int main() {
int a, b; cin >> a >> b;
if (a == b) {
puts("Draw");
return 0;
}
if (a == 1) {
puts("Alice");
return 0;
}
if (b == 1) {
puts("Bob");
return 0;
... | 136 |
Project_CodeNet | 2,020 | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define pb push_back
#define fi first
#define se second
const int N = 3e5+6;
const int mod = 1e9+7;
const int inf = 1e8;
void solve(){
int a,b;
cin>>a>>b;
if(a==1)a+=200;
if(b==1)b+=200;
if(a==b)cout<<"Dra... | 177 |
Project_CodeNet | 2,017 | #include <stdio.h>
int main(){
int a,b;
//a:Alice, b:Bob
scanf("%d %d", &a, &b);
if(a == b){
printf("Draw\n");
}
else if(a == 1 || b == 1){
if(a == 1) printf("Alice\n");
else printf("Bob\n");
}
else if (a < b){
printf("Bob\n");
}
else{
printf("Alice\n");
}
return 0;
} | 110 |
Project_CodeNet | 2,017 | #include <iostream>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <sstream>
#include <limits>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <string>
#include <cctype>
#include <queue>
#include <deque>
#include <stack>
#include <cmath>
#include <ctime>
#include ... | 340 |
Project_CodeNet | 2,019 | #include <bits/stdc++.h>
using namespace std;
int main(){
int A, B;
cin >> A >> B;
if(A == B){
cout << "Draw" << endl;
}
else if(A == 1 || (A > B && B != 1)){
cout << "Alice" << endl;
}
else {
cout << "Bob" << endl;
}
} | 95 |
Project_CodeNet | 2,017 | #include <cstdio>
#include <cstring>
#include <utility>
#include <cmath>
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int i,j;
cin >> i >> j ;
if(i==j)
cout << "Draw" << endl;
else if(i == 1){
cout << "Alice"<<endl;
}else if(j == 1){
cout << "Bob"<... | 133 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
using namespace std;
int main() {
long a, b;
cin >> a >> b;
if (a == 1) { a = 14; }
if (b == 1) { b = 14; }
cout << (a>b? "Alice" : a==b? "Draw" : "Bob") << endl;
} | 79 |
Project_CodeNet | 2,018 | #include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <cstring>
#include <map>
#include <queue>
#include <cmath>
#include <complex> // complex<double> a(1.2 , 2.3);// real(): 1.2, imag()2.3
using namespace std;
#define MOD 1000000007
#define ll long long
#define ld long double
#define ... | 353 |
Project_CodeNet | 2,018 | #include<bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll,ll>;
const ll inf = numeric_limits<ll>::max()/3;
int main(void){
int a,b;
cin >> a >> b;
if(a == b){
puts("Draw");
}else if(a == 1){
puts("Alice");
}else if(b == 1){
puts("Bob");
}else if(a > b){
puts("Alic... | 120 |
Project_CodeNet | 2,019 | #include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a==1)
a=14;
if(b==1)
b=14;
if(a>b)
cout<<"Alice"<<endl;
else
cout<<(a==b?"Draw":"Bob")<<endl;
return 0;
} | 79 |
Project_CodeNet | 2,018 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define FOR(i,a,b) for(ll (i)=a;(i)<(b);++(i))
#define RFOR(i,a,b) for(ll (i)=a;(i)>=(b);--(i))
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,n,0)
#define ALL(v) (v).begin(),(v).end()
#define BIT(n) (1LL<<(n))
#define IN(x,l,r) ... | 561 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
using namespace std;
int main(){
int A,B;
cin >> A >> B;
if(A == 1 && B != 1){
cout << "Alice" << endl;
}
else if(A != 1 && B == 1){
cout << "Bob" << endl;
}
else if(A > B){
cout << "Alice" << endl;
}
else if(A < B){
cout << ... | 121 |
Project_CodeNet | 2,020 | #include "bits/stdc++.h"
using namespace std;
using ll = long long;
template<typename T> using V = std::vector<T>;
using Vi = V<int>;
using VVi = V<V<int>>;
using Vl = V<ll>;
using VVl = V<V<ll>>;
using Vs = V<string>;
template<typename T1, typename T2> using P = std::pair<T1, T2>;
using Pii = P<int, int>;
using Pl... | 415 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> v={0,13,1,2,3,4,5,6,7,8,9,10,11,12};
int A,B;
cin >> A >> B;
if(v.at(A)>v.at(B)){
cout << "Alice" <<endl;
}else if(v.at(A)==v.at(B)){
cout << "Draw" << endl;
}else{
cout << "Bob" << endl;
}
return 0;
}
| 121 |
Project_CodeNet | 2,017 | #define MYDEBUG
#include <iostream>
#include <vector>
#include <chrono>
#include <random>
#include <algorithm>
#include <queue>
#include <set>
#include <cstdio>
#include <unordered_map>
#ifdef MYDEBUG
#define debug(x) cout<<#x<<": "<<x<<endl
#else
#define debug(x)
#endif
#define ll long long
#define ull unsigned long ... | 275 |
Project_CodeNet | 2,019 | #include <iostream>
using namespace std;
int main(){
int a,b;
cin >>a>>b;
if(a == b){
cout<<"Draw"<<endl;
return 0;
}else if(a == 1 ){
cout<<"Alice"<<endl;
return 0;
}else if(b == 1){
cout<<"Bob"<<endl;
return 0;
}else if(a>b){
cout<<"Alice"<<endl;
return 0;
}else {
cou... | 121 |
Project_CodeNet | 2,018 | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
string result;
cin >> a >> b;
if (a==b){
result = "Draw";
}
else{
if(a==1){
result = "Alice";
}
else if(b==1){
result = "Bob";
}
else if(a>b){
re... | 112 |
Project_CodeNet | 2,017 | #include <bits/stdc++.h>
using namespace std;
int main(){
int A,B;
cin >> A >> B;
if(A==B){
cout << "Draw" << endl;
}else if((A==1||A>B)&&B!=1){
cout << "Alice" << endl;
}else{
cout << "Bob" << endl;
}
return 0;
} | 81 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b;
cin >> a >> b ;
if ( a ==1)
a =14 ;
if ( b ==1)
b =14 ;
if(a==b)
cout << "Draw";
if(a<b)
cout << "Bob";
if(a>b)
cout << "Alice";
}
| 87 |
Project_CodeNet | 2,018 | #include<stdio.h>
int main(void)
{
int A, B;
scanf("%d%d", &A, &B);
if (A == 1)
A = 14;
if (B == 1)
B = 14;
if (A > B)
printf("Alice\n");
else if (A == B)
printf("Draw\n");
else
printf("Bob\n");
return 0;
} | 90 |
Project_CodeNet | 2,017 | #include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int a,b;
cin>>a>>b;
if(a==1||b==1){
if(a==1&&b!=1){
cout<<"Alice"<<endl;
}else if(a!=1&&b==1){
cout<<"Bob"<<endl;
}else{
cout<<"Draw"<<endl;
}
}else{
if(a>b){
cout<<"Alice"<<endl;
}e... | 151 |
Project_CodeNet | 2,018 | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a;
cin>>b;
if(a==1) a=14;
if(b==1) b=14;
if(a>b) cout<<"Alice"<<endl;
if(a==b) cout<<"Draw"<<endl;
if(a<b) cout<<"Bob"<<endl;
return 0;
} | 89 |
Project_CodeNet | 2,020 | #include<iostream>
#include<stdio.h>
#include<vector>
#include<algorithm>
#include<set>
#include<string>
#include<map>
#include<string.h>
#include<complex>
#include<math.h>
#include<queue>
#include <functional>
#include<time.h>
#include <stack>
#include<iomanip>
using namespace std;
#define rep(i,a,n) for(int i=(a);i<(... | 1,871 |
Project_CodeNet | 2,019 | #include<iostream>
#include<string>
using namespace std;
int main(void){
int a, c;
cin >> a >> c;
if(a == c) cout << "Draw" <<endl;
else if(a == 1) cout << "Alice" <<endl;
else if(c == 1) cout << "Bob" <<endl;
else if(a < c) cout << "Bob" <<endl;
else cout << "Alice" <<endl;
return 0;
}
| 104 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
using namespace std;
#define int long long
const int MAX = 1000001;
const int MOD = 1000000007;
signed main() {
int a,b;
cin>>a>>b;
if(a==1)a=14;
if(b==1)b=14;
if(a>b){
cout<<"Alice";return... | 126 |
Project_CodeNet | 2,019 | #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<cmath>
#include<cstdlib>
#include<tuple>
#define int long
using namespace std;
signed main() {
int A,B;
cin >> A >> B;
if(A == 1) {
A += 13;
}
if(B == 1) {
B += 13;
}
if(A > B) {
cout << "Alice" << endl;
}
else if(A < B) ... | 130 |
Project_CodeNet | 2,019 | #include<iostream>
#include<algorithm>
#include<functional>
#include<cmath>
#include<string>
#include<vector>
using namespace std;
const int mod = 1000000007;
#define ll long long
int main()
{
int A, B;
cin >> A >> B;
if (A == 1) A += 13;
if (B == 1) B += 13;
if (A == B) cout << "Draw" << endl;
else if (A < B) c... | 117 |
Project_CodeNet | 2,019 | #include <iostream>
#include <array>
#include <vector>
#include <iomanip>
#include <string>
#include <cmath>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
using namespace std;
typedef pair<int,int> P;
typedef long long LL;
const LL INF=1<<31;
const LL MOD=1000000007;
int main(){
int a,... | 149 |
Project_CodeNet | 2,018 | #include <iostream>
using namespace std;
int main(){
int a,b;
cin >> a>>b;
if(a==1||b==1){
if(a==1&&b!=1) cout <<"Alice"<<endl;
else if(a!=1&&b==1) cout <<"Bob"<<endl;
else cout <<"Draw"<<endl;
}
else{
if(a>b) cout <<"Alice"<<endl;
else if(a<b) cout <<"Bob"<<endl;
else cout <<"Draw"<<e... | 113 |
Project_CodeNet | 2,019 | #include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <numeric>
#include <complex>
#include <sstream>
#i... | 301 |
Project_CodeNet | 2,019 | #include <stdio.h>
#include <string>
#include <cstring>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <iterator>
#pragma warning(disable:4996)
typedef long long ll;
#define MIN(a, b) ((a)>(b)? (b): (a))
#define MAX(a, b) ((a)<(b)? ... | 213 |
Project_CodeNet | 2,019 | #include <iostream>
#include <string>
using namespace std;
int main(){
int a,b;
string res;
cin >> a >> b;
if (a == b){
res = "Draw";
}else{
if (a == 1 || b == 1){
res = (a == 1) ? "Alice" : "Bob";
}else{
res = (a > b) ? "Alice" : "Bob";
}
}
cout << res << endl;
return 0;
} | 115 |
Project_CodeNet | 2,018 | #include <iostream>
using namespace std;
int main(void){
int a,b; cin>>a>>b;
if(a==b) cout<<"Draw"<<endl;
else{
if(a==1) cout<<"Alice"<<endl;
else if(b==1) cout<<"Bob"<<endl;
else cout<<(a>b?"Alice":"Bob")<<endl;
}
return 0;
} | 84 |
Project_CodeNet | 2,019 | #include<bits/stdc++.h>
using namespace std;
int main () {
map<int,string> m;
int a, b; cin >> a >> b;
if (a == 1) a += 13;
if (b == 1) b += 13;
m[a] = "Alice";
m[b] = "Bob";
if (a == b) cout << "Draw" << endl;
else cout << m[max(a,b)] << endl;
return 0;
} | 109 |
Project_CodeNet | 2,019 | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define fi first
#define se second
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repp(i, a, b) for (int i = a; i <= (b); ++i)
#define repr(i, a, b) for (int i = a; i >= (b); --i)
typedef long long ll;
cons... | 318 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A == 1) {
A += 13;
}
if (B == 1) {
B += 13;
}
if (A == B) {
cout << "Draw" << endl;
} else if (A > B) {
cout << "Alice" << endl;
} else {
cout << "Bob" << endl;
}
} | 114 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b;
cin >> a >> b;
if (a == b) {
cout << "Draw" << endl;
} else if (a == 1) {
cout << "Alice" << endl;
} else if (b == 1) {
cout << "Bob" << endl;
}
else if (a > b) {
cout << "Alice" << endl;
} else {
cout << "Bob" << ... | 120 |
Project_CodeNet | 2,019 | #include<iostream>
#include<string>
#include<vector>
#include<cmath>
#include<algorithm>
#define lli long long int
#define uli unsigned long long int
#define inf 999999999999999999
#define rep(i,m,n) for(lli i = m;i < n;i++)
#define per(i,m,n) for(lli i=m-1;i>=n;i--)
#define st(n) sort(n.begin(), n.end())
#define rev(n... | 177 |
Project_CodeNet | 2,020 | #include<bits/stdc++.h>
using namespace std;
int main(){
int A,B;
cin >> A >> B;
if(A==1 && B!=1){
cout << "Alice" << endl;
}
else if(B==1 && A!=1){
cout << "Bob" << endl;
}
else if(A==1 && B==1){
cout << "Draw" << endl;
}
else if(A>B){
cout << "Alice" << endl;
}
else if(A==B){
... | 143 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;
int main(){
int a,b;
cin >> a >> b;
if(a==1)a += 13;
if(b==1)b += 13;
if(a==b)cout << "Draw" << endl;
else if(a>b)cout << "Alice" << endl;
else cout << "Bob" ... | 120 |
Project_CodeNet | 2,018 | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin >> a >>b;
if(a==b)cout << "Draw" << endl;
else if(a==1||b==1)cout << (a==1?"Alice":"Bob") << endl;
else cout << (a>b?"Alice":"Bob") << endl;
return 0;
} | 80 |
Project_CodeNet | 2,017 | #include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmat... | 200 |
Project_CodeNet | 2,020 | // C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free So... | 1,255 |
Project_CodeNet | 2,017 | // acdart
#include <iostream>
#include <cstring>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cctype>
#include <string>
#include <queue>
#include <vector>
#include <stack>
#include <set>
#include <map>
#include <cstdlib>
#define PB push_back
#define MP make_pair
#define MT make_t... | 399 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
#define INF 2e9
#define MOD 1000000007
#define MOD9 998244353
#define intMAX 51000;
#define PI 3.14159265359
using namespace std;
typedef long long llong;
// typedef long double ldouble;
using Graph = vector<vector<int>>;
// int ctoi(const char c){
// if('0' <= c && c <= '9') return (c-'0')... | 318 |
Project_CodeNet | 2,019 | #include<bits/stdc++.h>
using namespace std;
int main(){
int A,B;
cin >> A >> B;
if(A==1)A+=13;
if(B==1)B+=13;
if(A>B)cout <<"Alice"<<endl;
else if(B>A)cout <<"Bob"<<endl;
else cout <<"Draw"<<endl;
}
| 77 |
Project_CodeNet | 2,017 | #include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
if (A==1) A=14;
if (B==1) B=14;
if (A>B) cout<<"Alice"<<endl;
if (A==B) cout<<"Draw"<<endl;
if (A<B) cout<<"Bob"<<endl;
system("pause");
return 0;
} | 94 |
Project_CodeNet | 2,020 | #include <iostream>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
if (n == 1) n = 14;
if (m == 1) m = 14;
if (n > m) cout << "Alice\n";
else if (n < m) cout << "Bob\n";
else cout << "Draw\n";
return 0;
}
| 92 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define INF 1e12
#define PB push_back
#define PF push_front
#define fi first
#define se second
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vi vector<int>
#define vpi vector<pii>
#define vll vector<ll>
#define vp... | 667 |
Project_CodeNet | 2,019 | #include<iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
if(A == 1 && B != 1)
{
cout<<"Alice"<<endl;
}
else if(A != 1 && B == 1)
{
cout<<"Bob"<<endl;
}else if(A == 1 && B == 1)
{
cout<<"Draw"<<endl;
}else{
if(A<B)
{
cout<<"Bob"<<endl;
}else if(A > B)... | 146 |
Project_CodeNet | 2,019 | #include <bits/stdc++.h>
using namespace std;
int main(){
int a, b;
cin >> a >> b;
if(a==b){
cout << "Draw" << endl;
}else if(a<b){
if(a==1){
cout << "Alice" << endl;
}else{
cout << "Bob" << endl;
}
}else{
if(b==1){
cout << ... | 121 |
Project_CodeNet | 2,019 | #include <cstdio>
int main()
{
int a, b;
scanf("%d %d", &a, &b);
if (a == 1)
{
a = 14;
}
if (b == 1)
{
b = 14;
}
if (a>b)
{
printf("Alice");
}
else if (b>a)
{
printf("Bob");
}
else
{
printf("Draw");
}
... | 114 |
Project_CodeNet | 2,018 | #include<iostream>
using namespace std;
int a,b;
int main(){
cin>>a>>b;
if(a==1)a+=13;
if(b==1)b+=13;
if(a>b)cout<<"Alice"<<endl;
else if(a<b)cout<<"Bob"<<endl;
else cout<<"Draw"<<endl;
return 0;
} | 76 |
Project_CodeNet | 2,017 | #include <vector>
#include <deque>
#include <iostream>
#include <cstdlib>
#include <string>
#include <algorithm>
#include <functional>
#include <numeric>
static const int INF = 1001001001;
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
if (a == 1 && b == 1) {
cout << "Draw" << endl;
} else if (a ==... | 189 |
Project_CodeNet | 2,017 | #include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
int a,b;
cin>>a>>b;
if(a==1&&b!=1)
cout<<"Alice"<<endl;
else if (a!=1&&b==1)
cout<<"Bob"<<endl;
else
{
if(a>b)
cout<<"Alice"<<endl;
else if (... | 128 |
Project_CodeNet | 2,017 | #include <iostream>
#include <string>
using namespace std;
int main()
{
int A, B;
cin >> A >> B;
if (A == B)
cout << "Draw" << endl;
else if (A == 1 || (B != 1 && A > B))
cout << "Alice" << endl;
else
cout << "Bob" << endl;
return 0;
} | 86 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, m, n) for (int i = (m); i < (int)(n); i++)
#define REPS(i, m, n) for (int i = (m); i <= (int)(n); i++)
#define rep(i, n) REP(i, 0, n)
#define reps(i, n) for (int i = 0; i <= (int)(n); i++)
#define rrep(i, x) for (int i = ((int)(x)-1); i >= 0; i--)
#define rr... | 576 |
Project_CodeNet | 2,018 | #include<iostream>
using namespace std;
int main(){
int a,b;
cin >> a >> b;
if(a == b){
cout << "Draw" << endl;
}else{
if(a == 1 || a > b && b!=1) {
cout << "Alice" << endl;
}else
cout << "Bob" << endl;
}
return 0;
}
| 88 |
Project_CodeNet | 2,019 | #include <iostream>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A == 1) A = 100;
if (B == 1) B = 100;
if (A == B) {
cout << "Draw" << endl;
} else if (A > B) {
cout << "Alice" << endl;
} else {
cout << "Bob" << endl;
}
}
| 103 |
Project_CodeNet | 2,017 | #include <cstdio>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <malloc.h>
#include <stack>
#include <cstring>
#include <string>
#include <set>
#include <unordered_map>
#define INT long long int
#define MOD 1000000007
#define oo 987654321
using namespace std;
int main()
{
ios... | 203 |
Project_CodeNet | 2,020 | #include<bits/stdc++.h>
using namespace std;
int main()
{
long long a,b,w=0,n,i,c=0;
cin>>a>>b;
if(b==1 && a!=1) std::cout << "Bob" << '\n';
else if(a==1 && b!=1) std::cout << "Alice" << '\n';
else if(a>b) std::cout << "Alice" << '\n';
else if(a<b) std::cout << "Bob" << '\n';
else if(a==b) std::co... | 136 |
Project_CodeNet | 2,020 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b;
cin >> a >> b;
if((a==1)&&(b!=1)){
cout << "Alice";
}
else if((a!=1)&&(b==1)){
cout << "Bob";
}
else if(a>b){
cout << "Alice";
}
else if(a<b){
cout << "Bob";
}
else if(a==b){
cout << "Draw";
... | 117 |
Project_CodeNet | 2,019 | #include <iostream>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
if (a == b)
{
cout << "Draw" << endl;
}
else if(a == 1)
{
cout << "Alice" << endl;
}
else if(b == 1)
{
cout << "Bob" << endl;
}
else if(a > b)
{
cout << "... | 129 |
Project_CodeNet | 2,019 | #include<iostream>
#include<string>
#include <algorithm>
using namespace std;
int main()
{
int a,b;
cin >> a >> b;
a = (a==1 ? 14 : a);
b = (b==1 ? 14 : b);
cout << (a > b ? "Alice" : (a < b ? "Bob" : "Draw")) << endl;
} | 85 |
Project_CodeNet | 2,018 | #include <iostream>
int A, B;
int main()
{
std::cin >> A >> B;
if (A == 1)
A += 13;
if (B == 1)
B += 13;
std::cout << (A == B ? "Draw" : A > B ? "Alice" : "Bob") << std::endl;
return 0;
} | 81 |
Project_CodeNet | 2,017 | #include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
A=(A+11)%13;
B=(B+11)%13;
if(A>B)cout<<"Alice"<<endl;
if(A<B)cout<<"Bob"<<endl;
if(A==B)cout<<"Draw"<<endl;
system ("pause");
return 0;
} | 78 |
Project_CodeNet | 2,018 | #include<iostream>
#include<algorithm>
#include<cmath>
#include<cstdlib>
#include<string>
#include<vector>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
if (a == 1 && b == 1) {
cout << "Draw";
return 0;
}
if (a == 1) {
cout << "Alice";
return 0;
}
if (b == 1) {
cout << "Bob";
return... | 154 |
Project_CodeNet | 2,017 | #include"bits/stdc++.h"
//#include<bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(int i=a;i<=b;i++)
#define print(x) cout<<x<<endl;
typedef long long ll;
int main() {
int a, b;
cin >> a >> b;
if (a == 1) { a = 14; }
if (b == 1) { b = 14; }
if (a==b){print("Draw")}
else if (a > b) {print("Alice");}
e... | 131 |
Project_CodeNet | 2,020 | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> V;
#define rep(cnt,e) for(ll cnt=0;cnt<e;cnt++ )
typedef pair<ll,ll> P;
const ll mod = 1e9+7;
const ll INF = INT64_MAX;
ll i,j,k;
int main(){
ll A,B;
cin>>A>>B;
if(A==B)cout<<"Draw"<<endl;
else if(A==1||A>B&&B!=1)cout<<... | 126 |
Project_CodeNet | 2,019 | #include <iostream>
#include <cstdlib>
#include <string>
#include <algorithm>
using namespace std;
int comp(const void* a, const void* b){
return *(int*)a - *(int*)b;
}
int main() {
int a, b;
cin >> a >> b;
if(a == 1){
a = 14;
}
if(b == 1){
b = 14;
}
if(a > b){
cout << "Alice" << endl;
}else if(a == b)... | 132 |
Project_CodeNet | 2,018 | #include <iostream>
using namespace std;
int main(){
int a, b;
cin >> a >> b;
if ( a == 1 ) a = 15;
if ( b == 1 ) b = 15;
if ( a > b ) cout << "Alice" << endl;
else if ( b > a ) cout << "Bob" << endl;
else cout << "Draw" << endl;
} | 93 |
Project_CodeNet | 2,017 | #include "bits/stdc++.h"
using namespace std;
#define DEBUG(x) cout<<#x<<": "<<x<<endl;
#define DEBUG_VEC(v) cout<<#v<<":";for(int i=0;i<v.size();i++) cout<<" "<<v[i]; cout<<endl
typedef long long ll;
#define vi vector<int>
#define vl vector<ll>
#define vii vector< vector<int> >
#define vll vector< vector<ll> >
#defi... | 362 |
Project_CodeNet | 2,017 | #include <bits/stdc++.h>
#define REP(i,n) for (int i=0;i<(n);i++)
using namespace std;
int main(void){
int a, b;
cin >> a >> b;
if(a == 1 && b != 1) {
cout << "Alice" << endl;
} else if(a != 1 && b == 1) {
cout << "Bob" << endl;
} else if(a == b) {
cout << "Draw" << endl;
... | 141 |
Project_CodeNet | 2,017 | #include <iostream>
using namespace std;
int main() {
long long int a, b;
cin >> a >> b;
if ( a == 1 ) a += 13;
if ( b == 1 ) b += 13;
if ( a < b ) {
cout << "Bob" << endl;
}else if ( a > b ) {
cout << "Alice" << endl;
}else {
cout << "Draw" << endl;
}
return 0;
}
| 110 |
Project_CodeNet | 2,017 | #include <bits/stdc++.h>
using namespace std;
int main()
{
cin.tie(0);
ios_base::sync_with_stdio(false);
int a, b;
cin >> a >> b;
a--;
b--;
a = (a + 12) % 13;
b = (b + 12) % 13;
if (a > b) {
cout << "Alice";
} else if (a < b) {
cout << "Bob";
} else {
... | 118 |
Project_CodeNet | 2,019 | #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int A,B;
cin >> A >> B;
if(A == B) cout << "Draw" << endl;
else if(A == 1) cout << "Alice" << endl;
else if(B == 1) cout << "Bob" << endl;
else if(A > B) cout << "Alice" << endl;
else cout << "Bob" << e... | 110 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.