Source
stringclasses
1 value
Date
int64
2.01k
2.02k
Text
stringlengths
22
783k
Token_count
int64
20
394k
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() + 13) % 15; int b = (sc.nextInt() + 13) % 15; System.out.println(a > b ? "Alice" : a < b ? "Bob" : "Draw"); sc.close(); } }
92
Project_CodeNet
2,017
import java.util.Scanner; public class Main { //http://agc010.contest.atcoder.jp/tasks/agc010_a 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 && B != 1){ System.out.println("Alice"); ...
167
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(); if(A == B) { System.out.println("Draw"); return; } if(A == 1) { System.out.println("Alice"); } else if (B == 1) { System.out...
121
Project_CodeNet
2,017
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); if(a > b){ if(b == 1){ System.out.println("Bob"); }else{ System....
136
Project_CodeNet
2,017
import java.io.*; import java.util.*; import java.math.BigInteger; public class Main{ public static void main(String[] args) { InputReader in = new InputReader(System.in); PrintWriter w = new PrintWriter(System.out); int[] a=new int[13]; for(int i=1;i<a.length;i++){ a[i]=i; } a[0]=13; ...
867
Project_CodeNet
2,018
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int a = stdIn.nextInt(); int b = stdIn.nextInt(); if (a == 1) { a = 14; if (b == 1) { b = 14; } } else if (b == 1) { b = 14; if (a == 1) { a = 14; } ...
175
Project_CodeNet
2,020
import java.util.*; import java.lang.Math; 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("D...
115
Project_CodeNet
2,017
import java.util.*; /** * Created by Seiya on 2016/10/16. */ 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 == b){ System.out.println("Draw"); ...
121
Project_CodeNet
2,018
import java.io.File; import java.io.FileInputStream; import java.util.NoSuchElementException; import java.util.Scanner; import java.io.IOException; import java.io.InputStream; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; imp...
193
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) { System...
139
Project_CodeNet
2,017
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...
708
Project_CodeNet
2,020
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); int a=Integer.parseInt(scan.next()); int b=Integer.parseInt(scan.next()); if (a==b) { System.out.print("Draw"); }else if (a==1||b==1...
114
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); String array[] = br.readLine()....
166
Project_CodeNet
2,017
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 == b) { System.out.println("Draw"); }else if(a > b && b > 1 || a == 1) { System.out.println("Alice"); }else if(b > a ...
114
Project_CodeNet
2,020
import java.util.*; import java.io.*; import java.lang.*; 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...
116
Project_CodeNet
2,019
import java.util.*; 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("Draw"); }else if(A > B){ System.out.println("Alice"); }else{ System.out.println("Bob"); ...
93
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(); if(a==1 && b!=1)System.out.println("Alice"); else if(a==1 && b==1)System.out.println("Draw"); else if(a!=1 && b==1)System.out.println("Bob"...
125
Project_CodeNet
2,020
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String[] str = in.readLine().split(" "); int a = Integer.p...
131
Project_CodeNet
2,018
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int A=sc.nextInt()+11; int B=sc.nextInt()+11; A=A%13; B=B%13; if(A>B) { System.out.println("Alice"); } else if(B>A){ System.out.println("Bob"); } else { System.out.println("...
102
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){ A+=13; } if(B==1){ B+=13; } if(A>B){ System.out.println("Alice"); }else if(B>A){ Syste...
109
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==1 &&b==1){ System.out.println("Draw"); }else if(a==1){ System.out.println("Alice"); }else if(b==1){ System.ou...
132
Project_CodeNet
2,020
import java.util.*; class Main { public static void main(String args[]) { Scanner inp = new Scanner(System.in); int a = inp.nextInt(); int b = inp.nextInt(); if (a == 1) a = 14; if (b == 1) b = 14; if (a > b) System.out.println("Alice"); else if (a == b) Syst...
103
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(); int B = sc.nextInt(); if(A==1)A=14; if(B==1)B=14; if(A==B)System.out.println("Draw"); if(A>B)System.out.println("Alice"); if(B>A)System.out.println("Bob"); } }
96
Project_CodeNet
2,017
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st=new StringTokenizer(br.readLine()); int a=Integer.parseInt(st.nextToken()); ...
118
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) a = 14; if(b == 1) b = 14; if(a == b) System.out.println("Draw"); else if(a < b) System.out.p...
101
Project_CodeNet
2,017
import java.io.*; import java.math.BigInteger; import java.util.*; public class Main { public static void main(String[] args) throws FileNotFoundException { ConsoleIO io = new ConsoleIO(new InputStreamReader(System.in), new PrintWriter(System.out)); //ConsoleIO io = new ConsoleIO(new FileReader("D:\...
1,208
Project_CodeNet
2,020
import java.io.*; import java.util.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int a = Integer.parseInt(st.nextToken()); ...
134
Project_CodeNet
2,020
import java.util.*; import java.io.*; import java.util.function.*; // import lib.util.*; // import lib.graph.*; // import lib.io.*; // import lib.math.*; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); ...
4,445
Project_CodeNet
2,020
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static String Y = "Yes"; public static String N = "No"; public static long MOD = (long) (Math.pow(10, 9) + 7); public static Scanner sc = new Scanner(System.in); public static void main(String[] args) { Map<I...
1,207
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 == 1) { A = 14; } if (B == 1) { B = 14; } if (A > B) { System.out.println("Alice"); } else if (A < B) { ...
136
Project_CodeNet
2,018
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 ){ A = A + 13; } if( B == 1 ){ B = B + 13; } if(A > B ){ System.out.println("Alice"); }e...
122
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...
798
Project_CodeNet
2,017
import java.io.*; import java.math.BigInteger; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ String st = br.readLine(); String[] s = st.split(...
149
Project_CodeNet
2,019
import java.util.Scanner; 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 = 20; } if (b == 1) { b = 20; } if (a == b) { ...
127
Project_CodeNet
2,020
import java.util.*; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int win = -1; if(a == 1 || b == 1){ if(a != 1){ win = 1; }else if(a ...
172
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 = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); String result = new String(); if(a == b){ result = "Draw"; }else if(a ==1 && b <=13){ result = "Al...
160
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(); if(a == 1){ a = 100; } int b = scan.nextInt(); if(b == 1){ b = 100; } if(a > b){ System.out.println("Alice"); } else if(a < b){ System.o...
120
Project_CodeNet
2,020
import java.util.Arrays; import java.util.HashSet; import java.util.Scanner; class Main { public static void main(String[] args) throws Exception { new Main().run(); } void run() { Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); if(a==1)a=14; if(b==1)b=14; System.out.print...
123
Project_CodeNet
2,017
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int Alice = in.nextInt(); int Bob = in.nextInt(); System.out.println(Alice == Bob ? "Draw" : Alice == 1 ? "Alice" : Bob == 1 ? "Bob" : Alice > Bob ? "Alice" : "Bob"); } }
90
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(); int b = sc.nextInt(); if( a == b ){ System.out.println("Draw"); }else if( a == 1 ){ System.out.println("Alice"); }else if( b == 1 ){ System.out.println("Bob"...
126
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){A+=13;} if(B==1){B+=13;} if(A==B){ System.out.println("Draw"); }else if(A>B){ System.out.println("Alice"); }else{ System.o...
96
Project_CodeNet
2,019
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = (sc.nextLong() + 11) % 13; long b = (sc.nextLong() + 11) % 13; System.out.println(a > b ? "Alice" : a < b ? "Bob" : "Draw"); } }
86
Project_CodeNet
2,020
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = Long.parseLong(sc.next()); // String t = sc.next(); // String buff=""; long b = Long.parseLong(sc.next()); //int c = Integer.parseInt(sc.next()); //int n = Integer.parseInt...
301
Project_CodeNet
2,017
import java.util.Scanner; import java.util.Random; import java.util.Arrays; 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...
141
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==1){ System.out.println("Alice"); ...
114
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(); if (A == 1) { A = 14; } if (B == 1) { B = 14; } if (A > B) { System.out.println("Alice"); return; } if (B > A) { Sy...
138
Project_CodeNet
2,017
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String s = br.readLine(); String[] array = s.split(" "); int a = Integer.parseInt(array[0]...
147
Project_CodeNet
2,017
import java.util.*; import java.io.*; 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) System.out.println("Bob")...
114
Project_CodeNet
2,017
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; if(A==B)System.out.println("Draw"); if(A>B)System.out.println...
100
Project_CodeNet
2,017
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a = in.nextInt(); int b = in.nextInt(); if (a == 1) { a = 14; } if (b == 1) { b = 14; } if (a < b) { System.out.println("Bob"); } else if (a > b) { System.o...
130
Project_CodeNet
2,020
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; public class Main{ public static void main(String[] args){ InputStream inputStream = System.in; OutputStream outputStream = System.out; Scanner sc = new Scanner(...
161
Project_CodeNet
2,020
import java.text.DecimalFormat; import java.util.stream.LongStream; import java.util.stream.IntStream; import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); AtC...
699
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 += 13;} if (b == 1){b += 13;} if (a > b){ System.out.println("Alice"); }else if (a < b){ System.out.pr...
118
Project_CodeNet
2,018
import java.util.Scanner; public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); if (a == 1) { a = a * 14; } if (b == 1) { b = b * 14; } if (a > b) { System.out.print...
138
Project_CodeNet
2,017
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); if(a == b){ System.out.println("Draw"); }else{ if(a==1){ System.out.println("Alice"); return; } if(b==1){ ...
127
Project_CodeNet
2,017
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { 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.printl...
143
Project_CodeNet
2,019
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = s.nextInt(); if (a > b) { if (b == 1) { System.out.println("Bob"); } else { System.out.println("Alice"); } } else if (a < b) { if (a ...
147
Project_CodeNet
2,017
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // 1行、2つ(複数)数字 String[] ss0 = br.readLine().trim().split(" ", 0); int a = I...
240
Project_CodeNet
2,017
import java.util.*; 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==b){System.out.println("Draw");} else{ if(a>b){ if(b==1){System.out.println(...
113
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 (b == 1) { System.out.println("Bob"); } else if (a == 1) { System.out.println...
136
Project_CodeNet
2,020
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int a = scn.nextInt(); int b = scn.nextInt(); if(a==1) a+=13; if(b==1) b+=13; String ans = "Draw"; if(a>b) ans = "Alice"; if(a<b) ans = "Bob";...
98
Project_CodeNet
2,020
import java.io.*; import java.util.*; class Main{ void solve(){ int a = ni(); int b = ni(); if(a == 1) a = 14; if(b == 1) b = 14; System.out.println(a == b ? "Draw" : a > b ? "Alice" : "Bob"); } public static void main(String[] args){ new Main(...
6,388
Project_CodeNet
2,018
import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); int a = sc.nextInt(); int b = sc.nextInt(); if (a == 1) { ...
906
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(); System.out.println(solve(A, B)); sc.close(); } static String solve(int A, int B) { if (...
145
Project_CodeNet
2,017
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 > b) { if(b==1){ System.out.println("Bob"); }else Sy...
131
Project_CodeNet
2,017
import java.util.Scanner; public class Main { void run() { 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"); }else if(B == 1) { System.out.println("Bob"); }else { ...
150
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 == 1 && b > 1){ System.out.p...
129
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 && B!=1){ System.out.println("Alice"); }else if(A!=1 &&...
137
Project_CodeNet
2,017
import java.util.Arrays; 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(); if (A == 1) { A = 14; } if (B == 1) { B = 14; } if (A > B) { System.out.println(...
180
Project_CodeNet
2,019
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) throws IOException { new Main().solve(); } private void solve() throws IOException { try { solveA(); // solveB(); //...
818
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, B; A = sc.nextInt(); B = sc.nextInt(); if(A != 1 && ( A < B || B == 1)) System.out.print("Bob"); else if(B != 1 && (A > B || A == 1)) System.out.print("Alice"); else if(A ==...
108
Project_CodeNet
2,018
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in...
221
Project_CodeNet
2,017
import java.util.Scanner; class Main { public static void main(String[]args){ Scanner stdIn = new Scanner(System.in); int a = stdIn.nextInt(); int b = stdIn.nextInt(); if(a==1){ if(b!=1){ System.out.println("Alice"); } } if(b==1){ if(a!=1){ System.out.println("Bob"); } } if((a>...
149
Project_CodeNet
2,019
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); a = a==1 ? 14 : a; int b = sc.nextInt(); b = b==1 ? 14 : b; if(a==b) System.out.println("Draw"); else if(a>b) ...
103
Project_CodeNet
2,017
import java.util.Scanner; public class Main { public static void main(String[] args) { try (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"); } else if (B == ...
160
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==b) System.out.println("Draw"); else { if(a==1 || b==2) System.out.println("Alice"); else if(a==2 || b==1) System.out.println("Bob");...
120
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 += 13; } if (b == 1) { b += 13; } if (a > ...
124
Project_CodeNet
2,018
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){ a = 14; } if(b == 1){ b = 14; } if(a > b){ ...
174
Project_CodeNet
2,019
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static...
577
Project_CodeNet
2,018
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String args[]) { FastReader sc = new FastReader(); int a = sc.nextInt(); int b = sc.nextInt(); if (a == b) Syste...
292
Project_CodeNet
2,017
import java.util.Scanner; public class Main{ public static void main(String[] args){ int a,b; Scanner sc = new Scanner(System.in); a = sc.nextInt(); b = sc.nextInt(); if(a == b){ System.out.println("Draw"); }else if(a == 1){ System.out.println("Alice"); }else if(b == 1){ System.out.println("Bo...
120
Project_CodeNet
2,020
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.util.List; 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+=13; } if (b==1...
132
Project_CodeNet
2,017
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.*; import java.util.InputMismatchException; public class Main { public static void main(String[] args) { InputReader in = new InputReader(System.in); PrintWriter out = new PrintWriter(Syst...
902
Project_CodeNet
2,017
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { //BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //String line = br.readLine(); Scanner scan = new Scanner(System....
149
Project_CodeNet
2,017
import java.io.*; public class Main{ public static void main(String[] args){ BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); String str; int checkn = (int)' '; String[] s = new String[2]; int[] a = new int[...
214
Project_CodeNet
2,019
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); HashMap<String, Integer> hashmap = new HashMap<>(); make(hashmap); String alice = sc.next(); String bob = sc.next(); String winner = ""; if (...
265
Project_CodeNet
2,017
import java.util.Scanner; public class Main { void run() { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); a += 11; a %= 13; b += 11; b %= 13; if (a < b) { System.out.println("Bob"); } else if (b < a) { System.out.println("Alice"); } else { System.out.pri...
128
Project_CodeNet
2,018
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.InputMismatchException; import java.util.NoSuchElementException; public class Main { static PrintWriter out; static InputReader ir; static void solve() { int a=ir.nextInt(); int b=ir.nextInt(); if(a==1) a+=1...
900
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(),b=sc.nextInt(); if((a!=1&&a<b)||(b==1&&b<a)){ System.out.println("Bob"); }else if(a==b){ System.out.println("Draw"); }else{ System.out.println(...
92
Project_CodeNet
2,018
import java.util.ArrayList; import java.util.Scanner; class Main{ static ArrayList<Integer> one ; static ArrayList<Integer> two ; static ArrayList<Integer> three ; static ArrayList<Integer> four ; static long pow = 1000000007; public static void main(String[] args) { Scanner sc = new Scanner(System.in);...
218
Project_CodeNet
2,018
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==b) { System.out.println("Draw"); return; } if (a==1) { System.out.println("Alice"); return; } if (b==1) { ...
165
Project_CodeNet
2,019
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); String[] card = scan.nextLine().split("\\s"); int alicesCard = Integer.valueOf(card[0]); int bobsCard = Integer.valueOf(card[1]); if(alicesCard == 1 |...
172
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 == 1 || b == 1) { if (a > b) { System.out.println("Bob"); } else if (a < b) { System.out.println("Alice...
154
Project_CodeNet
2,020
import java.util.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner reader=new Scanner(System.in); /* String s1 =reader.next(); String s2 =reader.next(); String s3 =reader.next(); String s= s1.substring(0,1)+s2.substring(0,1)+s3.substring(0...
177
Project_CodeNet
2,020
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num1 = sc.nextInt(); int num2 = sc.nextInt(); if(num1 == 1){ num1 = 14; } if(num2 ==1){ num2 = 14; } ...
125
Project_CodeNet
2,017
import java.util.Scanner; public class Main{ static int a, b; public static void main(String[] args){ Scanner sc = new Scanner(System.in); a = sc.nextInt(); b = sc.nextInt(); if(a == 1){ a = 14; } if(b == 1){ b = 14; } if(a < b){ System.out.println("Bob"); } ...
122
Project_CodeNet
2,019
import java.io.PrintWriter; import java.util.Scanner; public class Main { static private Scanner scan = new Scanner(System.in); public static void main(String args[]) { int int1 = Integer.parseInt(scan.next()); int int2 = Integer.parseInt(scan.next()); // int int3 = Integer.parseInt(scan...
241
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(); if(a == 1){ a =14; } if(b == 1){ b =14; } if(a == b ){ System.out.println("Draw"); }else if(a>b){ System.out.println("Alic...
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(); int B = sc.nextInt(); if(A==B) System.out.println("Draw"); else if(A==1 || (A>B && B!=1)) System.out.println("Alice"); ...
86
Project_CodeNet
2,017
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int CardA = Integer.parseInt(sc.next()); int CardB = Integer.parseInt(sc.next()); String s = ""; if(CardA == 1){ CardA = 14; } if(CardB == 1){ CardB = 14; } if(CardA > CardB...
148