Source
stringclasses
1 value
Date
int64
2.01k
2.02k
Text
stringlengths
22
783k
Token_count
int64
20
394k
Project_CodeNet
2,018
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { try ( BufferedReader reader = new BufferedReader( new InputStreamReader(System.in))) { final ...
140
Project_CodeNet
2,017
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { // 標準入力 InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); ...
187
Project_CodeNet
2,018
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); sc.close(); if(A == 1) { if(B == 1) { System.out.println("Draw"); }else { System.out.println("Alice"); } }else if(B == 1)...
175
Project_CodeNet
2,017
import java.lang.*; import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws java.lang.Exception { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter out = new PrintWriter(outp...
345
Project_CodeNet
2,020
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = Integer.parseInt(sc.next()); int B = Integer.parseInt(sc.next()); sc.close(); if(A == B) { System.out.println("Draw"); }else if( A == 1) { System.out.println("Alice");...
137
Project_CodeNet
2,020
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); if(A==B){ System.out.println("Draw"); } else if((A>B && B!=1) || A==1){ System.ou...
95
Project_CodeNet
2,017
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { // TODO 自動生成されたメソッド・スタブ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.r...
168
Project_CodeNet
2,017
import java.io.*; import java.math.*; import java.util.*; public class Main { private static boolean debug = false; private static boolean elapsed = false; private static PrintWriter _out = new PrintWriter(System.out); private static PrintWriter _err = new PrintWriter(System.err); private void...
422
Project_CodeNet
2,019
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); scan.close(); if(a==1)a=14; if(b==1)b=14; if(a>b)System.out.println("Alice"); else if(a<b)System.out.println("Bob"); else Sys...
98
Project_CodeNet
2,019
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); if(A == 1)A = 14; if(B == 1)B = 14; String ans; if(A > B){ ans = "...
118
Project_CodeNet
2,017
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); if(a == 1) a += 13; int b = sc.nextInt(); if(b == 1) b += 13; String result; if(a > b) result = "Alice"; else if(a < b) result = "Bob"; else resu...
113
Project_CodeNet
2,020
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); PrintStream out = new PrintStream(System.out); int A, B; A = sc.nextInt(); B = sc.nextInt(); if(A == 1) { A += 13; ...
149
Project_CodeNet
2,018
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a==1) a+=13; if(b==1) b+=13; if(a==b) { System.out.println("Draw"); }else if(a>b) { System...
116
Project_CodeNet
2,019
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); sc.close(); if (a == b) { System.out.println("Draw"); } else if (a =...
132
Project_CodeNet
2,018
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); if(A == 1) A = 14; if(B == 1) B = 14; if(A > B) System.out.println("Alice"); else if(A < B) System.out.println("Bob"); else System.out...
101
Project_CodeNet
2,019
import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int a = (sc.nextInt() + 11) % 13; int b = (sc.nextInt() + 11) % 13; if (a > b) { System.out.println("Alice"); } else if (a < b) { System.out.println("Bob"); } else { System.out.p...
110
Project_CodeNet
2,017
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); if(A == 1){ A += 13; } if(B == 1){ B += 13; } if(A == B){ System.out.print("Draw"); }el...
128
Project_CodeNet
2,019
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a == b) { System.out.println("Draw"); } else if((a > b && b!=1) || a == 1) { System.out.println("Alice"); } else { System...
106
Project_CodeNet
2,017
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int A = scanner.nextInt(); int B = scanner.nextInt(); if(A == 1) A=14; if(B == 1) B=14; if(A < B){ System.out.println("Bob"); }else if(A > B){ System.out.println("Alice")...
117
Project_CodeNet
2,018
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); sc.close(); if(A == 1)A = 14; if(B == 1)B= 14; if(A == B) System.out.println("Draw"); else if(A > B) System.out.println("Alice"...
109
Project_CodeNet
2,020
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a=scan.nextInt(); int b=scan.nextInt(); if(a==1) a+=13; if(b==1) b+=13; if(a==b) System.out.println("Draw"); else if(a>b ) System.out.println("Alice"); else System.out.pri...
97
Project_CodeNet
2,018
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a == b){ System.out.println("Draw"); } else if(a == 1){ System.out.pr...
119
Project_CodeNet
2,019
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.StringTokenizer; public class Main { private static final int MOD = (int)Math.pow(10...
444
Project_CodeNet
2,020
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //整数の入力 int A = sc.nextInt(); int B = sc.nextInt(); //条件分岐と出力 if (A==1 && B==1) { System.out.println("Draw"); } else if (A==1) { System.out.println("Alice"); ...
166
Project_CodeNet
2,019
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.io.BufferedWriter; import java.io.Writer; import java.io.OutputStreamWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.Input...
810
Project_CodeNet
2,017
import java.util.*; public class Main { static int modNum = 1000000007; public static void main(String[] args){ Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); if(a == b){ System.out.println("Draw"); return; } if(a == 1){ System.out.println("Alice"); ...
146
Project_CodeNet
2,020
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int a = sc.nextInt(); int b = sc.nextInt(); if(a == b ){ System.out.println("Draw"); }else if(a > b && b != 1){ System.out.println("...
135
Project_CodeNet
2,019
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); sc.close(); if(a == 1) { a = 14; } if(b == 1) { b = 14; } if(a > b) { System.out.println("Alice"); }else if(a < b) { ...
126
Project_CodeNet
2,019
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a == b){ System.out.println("Draw"); } else if(a == 1){ System.out.println("Alice"); } else if(b == 1){ ...
125
Project_CodeNet
2,020
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a == b){ System.out.println("Draw"); }else if(a == 1){ System.out.println("Alice"); }else if(b == 1)...
121
Project_CodeNet
2,019
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String j = scanner.nextLine(); String[] tmpcards = j.split(" "); int[] cards = new int[3]; for (int i = 0; i < 2; i++){ cards[i] = Integ...
147
Project_CodeNet
2,017
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); System.out.println( A == B ? "Draw" : A == 1 ? "Alice" : B == 1 ? "Bob" : ...
92
Project_CodeNet
2,019
import java.io.*; import java.util.*; public class Main { private static int getPower(int card) { if (card == 1) { return 14; } return card; } private static String solve(int a, int b) { int aPower = getPower(a); int bPower = getPower(b); if (aPower > bPower) { return "Alic...
844
Project_CodeNet
2,020
import java.io.BufferedReader; import java.io.*; import java.util.*; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Collections; public class Main { public static void main(final String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); ...
166
Project_CodeNet
2,017
var a,b:longint; begin readln(a,b); if (a=b) then writeln('Draw') else begin if (a=1) or ((a>b) and (b<>1)) then writeln('Alice') else writeln('Bob'); end; end.
67
Project_CodeNet
2,018
var x,y,i:longint; a:array[0..15] of longint; begin readln(x,y); a[1]:=14; for i:=2 to 13 do a[i]:=i; if a[x]>a[y] then writeln('Alice') else if a[x]<a[y] then writeln('Bob') else writeln('Draw'); end.
82
Project_CodeNet
2,017
var a, b: Integer; begin // 入力 Readln(a, b); if a = b then Writeln('Draw') else if a = 1 then Writeln('Alice') else if b = 1 then writeln('Bob') else if a > b then writeln('Alice') else writeln('Bob'); end.
89
Project_CodeNet
2,020
var a,b:longint; begin readln(a,b); a:=(a+11) mod 13; b:=(b+11) mod 13; if a>b then writeln('Alice') else if a=b then writeln('Draw') else writeln('Bob'); end.
66
Project_CodeNet
2,020
var a,b:integer; begin read(a,b); a:=(a+11) mod 13; b:=(b+11) mod 13; if a>b then writeln('Alice') else if a<b then writeln('Bob') else writeln('Draw'); end.
61
Project_CodeNet
2,019
program onecardpoker; var a,b : integer; begin readln(a,b); if (a>b) and not(b = 1) then begin writeln('Alice'); end else if a=b then begin writeln('Draw'); end else if (a<b) and not(a = 1) then begin writeln('Bob'); end else if (a>b) and (b = 1) then begin writeln('Bob'); end else if (a<b) and (a=1) then begin writeln...
123
Project_CodeNet
2,017
program Project1; {$APPTYPE CONSOLE} uses SysUtils; var a,b:Integer; begin try { TODO -oUser -cConsole Main : ここにコードを記述してください } Read(a); Readln(b); if a=1 then a:=14; if b=1 then b:=14; if a>b then Writeln('Alice') else if a=b then Writeln('Draw') else ...
151
Project_CodeNet
2,019
program pocker; var a,b: longint; begin readln (a,b); if (a=b) then writeln ('Draw') else if (a=1) then writeln ('Alice') else if (b=1) then writeln ('Bob') else if (a>b) then writeln ('Alice') else if (b>a) then writeln ('Bob'); end.
92
Project_CodeNet
2,019
var x, y : integer; begin readln(x, y); if (x=y) then writeln('Draw') else if (x=1) then writeln('Alice') else if (y=1) then writeln('Bob') else if (x>y) then writeln('Alice') else if (x<y) then writeln('Bob'); end.
85
Project_CodeNet
2,019
program poker; var a, b : integer; begin readln(a, b); if a = 1 then if a = b then writeln('Draw') else writeln('Alice') else if b = 1 then if b = a then writeln('Draw') else writeln('Bob') else if a > b then writeln('Alice') else if b > a then writeln('Bob') else ...
121
Project_CodeNet
2,019
var x,y:Longint; begin read(x,y); x:=(x+11)mod 13; y:=(y+11)mod 13; if x<y then writeln('Bob')else if x>y then writeln('Alice')else writeln('Draw')end.
59
Project_CodeNet
2,019
var x, y : integer; begin readln(x,y); if (x>y) and (y<>1) then writeln('Alice') else if (y>x) and (x<>1) then writeln('Bob') else if (x>y) and (y=1) then writeln('Bob') else if (y>x) and (x=1) then writeln('Alice') else writeln('Draw'); end.
104
Project_CodeNet
2,020
var a,b:longint; begin readln(a,b); a:=(a+11)mod 13; b:=(b+11)mod 13; if a>b then writeln('Alice'); if a=b then writeln('Draw'); if a<b then writeln('Bob'); end.
68
Project_CodeNet
2,017
Var a,b:integer; BEGIN readln(a,b); if a = 1 then a := 100; if b = 1 then b := 100; if a > b then writeln('Alice') else if a < b then writeln('Bob') else writeln('Draw'); END.
68
Project_CodeNet
2,020
import sequtils, strutils, algorithm, math, future, sets proc solve() = var a,b : int (a,b) = stdin.readLine.split.map parseInt if a == b : echo "Draw" elif a == 1 : echo "Alice" elif b == 1 : echo "Bob" elif a>b : echo "Alice" else : echo "Bob" solve()
99
Project_CodeNet
2,020
# Vicfred # https://atcoder.jp/contests/abc054/tasks/abc054_a # implementation import strutils, sequtils let line = stdin.readLine.split.map(parseInt) let (a, b) = (line[0], line[1]) if a == 1 or b == 1: if a == b: echo "Draw" elif a == 1: echo "Alice" else: echo "Bob" elif a > b: echo "Alice" eli...
126
Project_CodeNet
2,020
import strutils,sequtils;let X=stdin.readLine.split.map parseInt;echo if X[0]==X[1]:"Draw"elif X[0]==1 or X[1]!=1 and X[0]>X[1]:"Alice"else:"Bob"
57
Project_CodeNet
2,020
import sequtils, strutils let cards = stdin.readline.split.map(parseInt) if cards[0] == cards[1]: echo "Draw" elif cards[0] == 1 or cards[0] > cards[1] and cards[1] != 1: echo "Alice" else: echo "Bob"
70
Project_CodeNet
2,020
#{{{ header {.hints:off warnings:off optimization:speed.} import algorithm, sequtils, tables, macros, math, sets, strutils when defined(MYDEBUG): import header proc scanf(formatstr: cstring){.header: "<stdio.h>", varargs.} proc getchar(): char {.header: "<stdio.h>", varargs.} proc nextInt(): int = scanf("%lld",addr ...
588
Project_CodeNet
2,019
import sequtils,strutils var ab = readLine(stdin).split().map(parseInt) a = ab[0] b = ab[1] if a > b: if b == 1: echo "Bob" else: echo "Alice" elif a < b: if a == 1: echo "Alice" else: echo "Bob" else: echo "Draw"
91
Project_CodeNet
2,018
import strutils,sequtils let n = readLine(stdin).split().map(parseInt) if n[0] == n[1]: echo "Draw" elif n[0] == 1 or (n[0] > n[1] and n[1] != 1): echo "Alice" else: echo "Bob"
74
Project_CodeNet
2,020
import strutils,sequtils; var P=stdin.readLine.split.map parseInt echo if P[0]==P[1]:"Draw"else: @["Alice","Bob"][int(1 in P xor P[0]<P[1])]
51
Project_CodeNet
2,018
import strutils, sequtils proc j(i: int): int = [i, i * 100][int(i == 1)] var a, b: int (a, b) = stdIn.readLine.split.map(parseInt) ["Alice", "Bob", "Draw"][ int(b.j > a.j) + 2 * int(b.j == a.j)].echo
79
Project_CodeNet
2,020
import sequtils, strutils, algorithm, math, future, sets, tables, hashes var A = stdin.readLine.split.map(parseInt) if A[0] > A[1]: if A[1] == 1: echo "Bob" else: echo "Alice" elif A[0] < A[1]: if A[0] == 1: echo "Alice" else: echo "Bob" else: echo "Draw"
103
Project_CodeNet
2,017
import strutils, sequtils, algorithm, future {.warning[SmallLshouldNotBeUsed]: off.} when isMainModule: var input = stdin.readLine.split.map(parseInt) (a, b) = (input[0], input[1]) if a == b: echo "Draw" elif a == 1: echo "Alice" elif b == 1: echo "Bob" elif a > b: echo "Alice" el...
115
Project_CodeNet
2,019
import strutils, sequtils var a,b:int;(a,b)=stdin.readline.split.map(parseInt) if a>b:echo if a==13 and b==1:"Bob"else:"Alice" elif a<b:echo if a==1 and b==13:"Alice"else:"Bob" else:echo"Draw"
67
Project_CodeNet
2,018
import strutils, sequtils let ab = stdin.readLine.split.map(parseInt) var A,B: int if ab[0]==1:A=14 else:A=ab[0] if ab[1]==1:B=14 else:B=ab[1] if A>B:echo "Alice" elif A<B:echo "Bob" else:echo "Draw"
77
Project_CodeNet
2,018
import strutils import sequtils import algorithm import math import sets import hashes import tables import macros template readString: string = stdin.readLine template readStrings: seq[string] = stdin.readLine.split template readInt: int = stdin.readLine.parseInt template readInts: seq[int] = stdin.readLine.split.map...
285
Project_CodeNet
2,020
scale=0 x=(read()+11)%13 y=(read()+11)%13 if(x<y)"Bob "else if(x>y)"Alice "else"Draw "
40
Project_CodeNet
2,020
#include <bits/stdc++.h> using namespace std; #define ll long long template<typename T> void drop(const T &x){cout<<x<<endl;exit(0);} void solve() { int a,b; cin >> a >> b; if(a==1) a=14; if(b==1) b=14; if(a==b) drop("Draw"); cout << (a>b?"Alice":"Bob") << endl; return; } signed main() { ios::sync_wi...
142
Project_CodeNet
2,017
#include <iostream> #include <vector> #include <algorithm> #include <string> #define FOR(i,k,n) for((i)=(k);(i)<(n);(i)++) #define REP(i,n) for (int i=0;i<(n);i++) #define pb push_back #define all(a) (a).begin(),(a).end() //greater<int>() using namespace std; int main(){ int A,B; cin>>A>>B; if(A==1) A=14; if(B=...
152
Project_CodeNet
2,019
#include <bits/stdc++.h> #define REP(i, n) for(int i = 0;i < n;i++) #define REPR(i, n) for(int i = n;i >= 0;i--) #define FOR(i, m, n) for(int i = m;i < n;i++) #define FORR(i, m, n) for(int i = m;i >= n;i--) #define SORT(v, n) sort(v, v+n); #define VSORT(v) sort(v.begin(), v.end()); #define llong long long #define pb(a)...
259
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 << "Alice" << endl; return 0; } if(B > A){ cout << "Bob" << endl; return 0; } cout << "Draw" << endl; }
117
Project_CodeNet
2,020
#include<bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using pint = pair<int, int>; using pll = pair<ll, ll>; using edge = pair<int, ll>; using Graph = vector<vector<int>>; using WeightedGraph = vector<vector<edge>>; const ll INF = 1LL << 60; const int INF32 = 1 << 29; const ll MOD...
169
Project_CodeNet
2,018
#include <bits/stdc++.h> using namespace std; #define ll long long #define fw(p) for(int w=0;w<(p);w++) #define fx(p) for(int x=0;x<(p);x++) #define fy(p) for(int y=0;y<(p);y++) #define fz(p) for(int z=0;z<(p);z++) #define fyg(p,g) for(int y=(g);y<(p);y++) #define fzg(p,g) for(int z=(g);z<(p);z++) #define ce(d) cout...
638
Project_CodeNet
2,017
#include <stdio.h> #include <bits/stdc++.h> #define endl "\n" #define si(a) scanf("%d ",&a); #define si2(a,b) scanf("%d %d ",&a,&b); #define si3(a,b,c) scanf("%d%d%d",&a,&b,&c) #define sll(a) scanf("%lld ",&a); #define sll2(a,b) scanf("%lld%lld",&a,&b) #define sll3(a,b,c) scanf("%lld%lld%lld",&a,&b,&c) #define sf(a) s...
472
Project_CodeNet
2,020
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define INF 1e9 #define st string #define pb push_back #define eb emplace_back #define pii pair<int, int> #define fopen freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #define fastio ios_base::sync_with_s...
253
Project_CodeNet
2,017
#define _USE_MATH_DEFINES #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string> #include<iostream> #include<cctype> #include<cstdio> #include<vector> #include<stack> #include<queue> #include <algorithm> #include<math.h> #include<set> #include<map> #include<iomanip> //#include<bits/stdc++.h> using namesp...
156
Project_CodeNet
2,020
#include <bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; int A=a+11; int B=b+11; if (A%13>B%13){ cout<<"Alice"<<endl; } else if (A%13==B%13){ cout<<"Draw"<<endl; } else{ cout<<"Bob"<<endl; } }
95
Project_CodeNet
2,020
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <queue> #include <cmath> #include <climits> #include <iomanip> #include <set> #include <map> using namespace std; typedef long long ll; int main(){ ll a,b; cin >> a >> b; if(a == 1)a = 100; if(b == 1)b = 100; if(a == b)cout ...
127
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 if (a == b) { cout << "Draw" << endl; } else cout << "Bob" << endl; }
101
Project_CodeNet
2,017
#include <iostream> 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>B)cout<<"Alice"<<endl; else if (A<B)cout<<"Bob"<<endl; else if (A==B)cout<<"Draw"<<endl; }
90
Project_CodeNet
2,019
#include <iostream> #include <string> using namespace std; int main(){ int A,B; cin >> A >> B; if (A==1) A = A + 100; if (B==1) B = B + 100; if (A>B){ cout << "Alice" << endl; } else if (A<B){ cout << "Bob" << endl; } else{ cout << "Draw" << endl; } ...
110
Project_CodeNet
2,020
#include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <ctime> #include <cstring> #include <functional> #include <iostream> #include <iomanip> #include <limits> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define fix(n) cout<<fixed<<s...
386
Project_CodeNet
2,020
#include<bits/stdc++.h> #define rep(i,n) for(int i=0; i < n; i++) #define INF 1001001001 #define LINF (1LL << 62) using namespace std; using ll = long long; using P = pair<int,int>; void solv() { int Alice, Bob; cin >> Alice >> Bob; Alice -= 2; Bob -= 2; if( Alice < 0) Alice += 13; if( ...
173
Project_CodeNet
2,018
//A-One_Card_Poker #include <bits/stdc++.h> using namespace std; int main(){ int a,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==b) cout<<"Draw"<<endl; else if(a==1) cout<<"Alice"<<endl; else cout<<"B...
121
Project_CodeNet
2,017
#include <iostream> #include <stdio.h> #include <string> #include <math.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) printf("Alice\n"); else if(a<b) printf("Bob\n"); else printf("Draw\n"); return 0; }
89
Project_CodeNet
2,018
#include <iostream> using namespace std; int main(void){ // Your code here! 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; }
86
Project_CodeNet
2,020
#include <iostream> using namespace std; int main() { int a, b; string s; do { cin >> a >> b; } while (a < 1 || a > 13 || b < 1 || b > 13); if (a > b && a != 1) { s = "Alice"; if (b == 1) { s = "Bob"; } } else if (a < b) { s = "Bob"; if (a == 1) { s = "Alice"; } } else { s...
147
Project_CodeNet
2,018
#include<string.h> #include<map> #include<set> #include<vector> #include<stdio.h> #include<math.h> #include<iostream> #include<algorithm> #include<queue> using namespace std; int main() { int x,y; cin>>x>>y; if(x==1) x=14; if(y==1) y=14; if(x>y) cout<<"Alice"; if(x==y) cout<<...
114
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 << "Alice" << endl; else if(a < b) cout << "Bob" << endl; else cout << "Draw" << endl; return 0; }
98
Project_CodeNet
2,018
#include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; if(x==1) x=14; if(y==1) y=14; cout <<(x<y?"Bob":x==y?"Draw":"Alice"); return 0; }
69
Project_CodeNet
2,017
#include <iostream> #include <string> #include <algorithm> using namespace std; string data[3] = {"Alice", "Bob", "Draw"}; int main(){ cin.tie(0); ios::sync_with_stdio(false); int A, B; cin >> A >> B; string ans; if(A == 1 && B == 1){ ans = data[2]; } else if(A == 1){ ...
178
Project_CodeNet
2,018
#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(b>a) cout<<"Bob"<<endl; else cout<<"Draw"<<endl; }
77
Project_CodeNet
2,017
#include<bits/stdc++.h> 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<<"Alice"<<endl; else if(b>a)cout<<"Bob"<<endl; else cout<<"Draw"<<endl; return 0; }
80
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) { cout << "Alice" << endl; } else if (B == 1) { cout << "Bob" << endl; } else if (A > B) { cout << "Alice" << endl; } else { cout << "Bob...
124
Project_CodeNet
2,017
#include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <vector> #include <string> #include <algorithm> #include <stack> #include <queue> #include <set> #include <map> using namespace std; //typedef __int64 LL; typedef vector<int> ivec; typedef vector<string> svec; int a,b; int main(){ ...
143
Project_CodeNet
2,019
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define SWAP(x,y,z) {if ( y > z ) swap(y,z); if ( x > y ) swap(x,y); if (y > z) swap(y,z);} int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int a,b; cin >> a >> b; if ( a == 1 && b != 1 ) cout << "Alice"; el...
174
Project_CodeNet
2,020
#include <bits/stdc++.h> using namespace std; #define ar array #define pb push_back #define fi first #define se second #define all(x) (x).begin(), (x).end() #define sz(x) ((int)(x).size()) typedef vector<int> vi; typedef long long ll; typedef pair<int,int> pii; typedef double db; const ll mod = 1000000007; ll gcd(ll a,...
265
Project_CodeNet
2,018
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<ll, ll> P; #define pb push_back #define rep(i, a, n) for(int i = (a); i < (n); i++) #define dep(i, a, n) for(int i = (a); i >= (n); i--) #define mod (ll)(1e9+7) #define int ll __attribute__((constructor))...
231
Project_CodeNet
2,017
#include <cstdio> int main(){ int A, B; scanf("%d %d", &A, &B); A = (A == 1) ? 14 : A; B = (B == 1) ? 14 : B; if(A > B){ printf("Alice\n"); }else if(A < B){ printf("Bob\n"); }else{ printf("Draw\n"); } return 0; }
100
Project_CodeNet
2,019
#include <bits/stdc++.h> using namespace std; int main() { int A, B; cin >> A >> B; string ans = "Draw"; if (A != 1 && B != 1) { if (A > B) ans = "Alice"; if (A < B) ans = "Bob"; } else { if (A == 1 && B != 1) ans = "Alice"; if (A != 1 && B == 1) ans = "Bob"; } c...
127
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 == B) { cout << "Draw" << endl; } else if (A < B) { cout << "Bob" << endl; } else if (A > B) { cout << "A...
133
Project_CodeNet
2,017
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; if(x-1 == 0) x = 14; if(y-1 == 0) y = 14; cout << (x == y ? "Draw" : (x > y ? "Alice" : "Bob")) << endl; }
81
Project_CodeNet
2,020
//#pragma warning(disable:4996) #include <iostream> #include <vector> #include <limits.h> #include <algorithm> #include <string> #include <math.h> #include <limits.h> #include <queue> #include <map> #include <set> #include <iomanip> #include <bitset> #include <cassert> #include <random> #include <functional> #include <...
359
Project_CodeNet
2,019
#include<bits/stdc++.h> using namespace std; signed main(){ int a,b; cin>>a>>b; if(a==b){ cout<<"Draw"<<"\n"; return(0); } if(a==1){ cout<<"Alice"<<"\n"; return(0); } if(b==1){ cout<<"Bob"<<"\n"; return(0); } if(a>b){ cout<<"Alice"<<"\n"; return(0); } if(a<b){ c...
129