id
int64
0
4.52k
code
stringlengths
142
31.2k
answer
stringclasses
7 values
prompt
stringlengths
1.64k
32.6k
test_prompt
stringlengths
1.7k
32.7k
token_length
int64
373
7.8k
__index_level_0__
int64
0
4.5k
2,721
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.util.ArrayList; public class Task235A { public static void main(String... args) throws NumberFormatException, IOException { ...
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
858
2,715
2,945
import java.io.*; import java.lang.reflect.Array; import java.math.BigInteger; import java.util.Arrays; import java.util.Scanner; import java.util.StringTokenizer; import java.util.TreeMap; public class A { public static void main(String [] args) throws IOException { Scanner in = new Scanner(System.in); System....
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
465
2,939
2,104
import java.io.*; import java.util.*; public class Replacement { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub BufferedReader r=new BufferedReader(new InputStreamReader(System.in)); String s=r.readLine(); int n=new Integer(s); int[]arr=new int[n]; String...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
603
2,100
2,086
import java.io.*; import java.util.*; public class A implements Runnable { private MyScanner in; private PrintWriter out; private void solve() { int n = in.nextInt(); int[] a = new int[n]; int max = -1, maxp = -1; for (int i = 0; i < n; ++i) { a[i] = in.nextInt(...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
836
2,082
2,359
import java.util.*; import java.io.*; public class P911d { private static void solve() { int n = nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = nextInt(); } int cnt = 0; for (int i = 0; i < n; i++) { for (int j = i + 1; j < n; j++) { if (a[i] > a[...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
730
2,354
1,873
import java.math.BigInteger; import java.util.Scanner; public class d { public static void main(String[] args) { Scanner in = new Scanner(System.in); int N = in.nextInt(); int[] arr = new int[N]; for(int n=0;n<N;n++){ arr[n] = in.nextInt(); } Wavelet waveyMcWaveFace = new Wavelet(arr); BigInteg...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,561
1,869
956
import java.io.*; import java.util.*; public class Main { static class FastScanner { private BufferedReader bufferedReader; private StringTokenizer stringTokenizer; public FastScanner(InputStream inputStream) { bufferedReader = new BufferedReader(new InputStreamReader(inputStre...
O(log(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
2,436
955
821
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.math.BigInteger; import java.util.InputMismatchException; /** * @author Egor Kulikov (egor@egork.net) * Created on 14.03.2010 */ public class TaskA implements Runnable { private InputReader in; private PrintWri...
O(n)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,733
820
1,520
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class CoveredPointsCount { //UPSOLVE public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStre...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
682
1,518
320
import java.io.IOException; import java.io.InputStream; import java.util.InputMismatchException; import java.util.Stack; public class D527A2 { public static void main(String[] args) { FastScanner in = new FastScanner(System.in); int N = in.nextInt(); Stack<Integer> stack = new Stack<>(); for(int i = 0; i < N;...
O(n)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
990
320
3,063
import java.util.*; import java.io.*; public class Soldiers { public static void main(String[] args) throws IOException { new Soldiers().run(); } void run() throws IOException { br = new BufferedReader(new InputStreamReader(System.in)); pw = new PrintWriter(System.out); int n = nextInt(); pw.println(3 *...
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
488
3,057
2,736
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); long x = input.nextLong(); if(x==1||x==2){System.out.println(x); } else if(x%2==0&&x>2&&x%3!=0){ System.out.println((x)*(x-1)*(x-3)); }else if(x%2==0&&x%3==0){ System....
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
486
2,730
3,189
import java.io.BufferedInputStream; import java.io.PrintStream; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in=new Scanner(new BufferedInputStream(System.in)); PrintStream out=System.out; int n=in.nextInt(); if (n>=0) out.println(n); else out.println(Math....
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
436
3,183
2,237
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; public class C { public static void main(String[] args){ FastScanner scan = new FastScanner(); PrintWriter out = new PrintWriter(System.out); n = scan.nextI...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,032
2,233
4,193
import java.io.*; import java.util.*; import static java.lang.Math.*; import static java.util.Arrays.fill; import static java.util.Arrays.binarySearch; import static java.util.Arrays.sort; public class Main { public static void main(String[] args) throws IOException { try { if (new File("input.txt").exists()) { ...
non-polynomial
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
977
4,182
4,302
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Map; public class ProblemB { public static int _gnum; public static int _cnum; public static int _needs; public static int _level; public static double _maxans = 0; public ...
non-polynomial
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,368
4,291
1,524
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import java.util.StringTokenizer; import java.util.TreeSet; //basically tried to unde...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
812
1,522
2,741
import java.util.*; import java.io.*; import java.math.*; public class Main { public static Scanner scan = new Scanner(System.in); public static boolean bg = true; public static void main(String[] args) throws Exception { long n1 = Integer.parseInt(scan.next()); if (n1==1){ Sys...
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
573
2,735
2,756
import java.util.*; import java.io.*; public class LCMChallenge { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); if(n < 3) { System.out.println(n); } else if(n % 2 == 1) { System.out.println((long)n * (n - 1) * (n - 2)); } else { ...
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
513
2,750
1,614
import java.io.InputStreamReader; import java.io.IOException; import java.io.BufferedReader; import java.io.OutputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * @author Sunits789 */ public class M...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,019
1,611
2,254
import java.io.*; import java.util.*; public final class PythonIndentation { public static void main(String[] args) { new PythonIndentation(System.in, System.out); } static class Solver implements Runnable { static final int MOD = (int) 1e9 + 7; int n; char[] arr; long[][] dp; BufferedReader in; Pr...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,042
2,249
2,001
import java.io.*; import java.util.*; public class A4 { public BufferedReader input; public PrintWriter output; public StringTokenizer stoken = new StringTokenizer(""); public static void main(String[] args) throws IOException { new A4(); } A4() throws IOException { input = n...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
840
1,997
61
import java.io.*; import java.util.*; public class A { public static void main(String args[]) { FastScanner scn = new FastScanner(); int n = scn.nextInt(); int s = scn.nextInt(); if (s <= n) { System.out.println(1); } else if (s > n) { if(s%n == 0){ ...
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
641
61
2,225
import static java.lang.Integer.parseInt; import static java.lang.Long.parseLong; import static java.lang.System.exit; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; public class G { static final int MOD = 10...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,364
2,221
1,574
import java.io.*; import java.util.*; public class Solution { private StringTokenizer st; private BufferedReader in; private PrintWriter out; public void solve() throws IOException { int n = nextInt(); int[] a = new int[n]; for (int i = 0; i < n; ++i) { a[i] = nextInt(); } int[] b = a.clone(); Ar...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
687
1,571
568
import java.util.Scanner; public class B_14 { @SuppressWarnings("resource") public static void main(String[] args) { Scanner input = new Scanner(System.in); int t = input.nextInt(); for(int test = 0; test < t; test++){ int n = input.nextInt(); if(n % 2 == 0){ if(Math.sqrt(n / 2) == (int)(Math.sqrt(...
O(n)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
502
567
3,446
//package round23; import java.io.PrintWriter; import java.io.StringReader; import java.util.Arrays; import java.util.HashSet; import java.util.Scanner; public class A { private Scanner in; private PrintWriter out; // private String INPUT = add("a", 100); private String INPUT = ""; public void solve() { Stri...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
686
3,440
1,818
import java.util.Arrays; import java.util.Scanner; /** * * @author Natasha */ public class Main{ public static void main(String[] args) { Scanner in = new Scanner(System.in); int produzeni = in.nextInt(); int devices = in.nextInt(); int stekovi = in.nextInt(); int [] fi...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
540
1,814
3,910
import java.util.*; import java.io.*; public class uo{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int testcases = Integer.parseInt(st.nextToken()); for(int lmn=0;...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
740
3,900
3,195
import java.io.*; import java.util.*; public class Problem1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if (n < 0) { int first = n / 10; int second = (n / 100)*10 + (n % 10); if...
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
470
3,189
2,763
import java.lang.*; import java.util.*; import java.io.*; public class Challenge { 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 PrintWrite...
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
753
2,757
286
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 * * @author Pradyumn */ public class M...
O(log(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,119
286
4,322
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); boolean[][] graph = new boolean[n][n]; for(int i = 0; i < m; i++) { ...
non-polynomial
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
780
4,311
1,139
import java.io.IOException; import java.io.PrintWriter; import java.util.*; import java.io.*; public class Main { boolean[] b; int[] r; ArrayList<ArrayList<Integer>> q; public void dfs(int u, int p) { for (int i = 0; i < q.get(u).size(); i++) { int v = q.get(u).get(i); ...
O(log(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
822
1,138
87
import java.io.*; import java.util.*; public class Main { static class FastScanner { BufferedReader br; StringTokenizer st; public FastScanner() { try { br = new BufferedReader(new InputStreamReader(System.in)); st = new StringTokenizer(br.readLine...
O(n)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
694
87
1,817
import java.util.Scanner; import java.io.OutputStream; import java.io.IOException; import java.util.Arrays; import java.io.PrintWriter; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputSt...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
636
1,813
901
import java.util.Scanner; public class BB { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int k=sc.nextInt(); int a[]=new int[n+1]; boolean used[]=new boolean[100009]; for (int i = 1; i <=n; i++) { a[i]=sc.nextInt(); } int cnt=0...
O(n)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
598
900
2,208
import com.sun.org.apache.regexp.internal.RE; import java.io.*; import java.nio.file.ClosedWatchServiceException; import java.nio.file.OpenOption; import java.security.SecureRandom; import java.util.*; public class Main { public static void main(String[] args) throws FileNotFoundException { ConsoleIO io =...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,831
2,204
806
//package round17; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.io.StreamTokenizer; public class A { static StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in))); static int nextInt(...
O(n)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
620
805
3,594
import java.io.*; import java.io.IOException; import java.util.Iterator; import java.util.LinkedList; import java.util.Queue; import java.util.Scanner; import java.util.Stack; import java.util.TreeSet; public class ViewAngle{ private static int V,level[][],count=-1,lev_dfs[],degree=0,no_vert_conn_comp=0; ...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
2,186
3,586
3,611
import java.io.*; import java.util.*; public class MainF { public static void main(String[]args) throws IOException{ BufferedReader br = new BufferedReader(new FileReader(new File("input.txt"))); BufferedWriter bw = new BufferedWriter(new FileWriter(new File("output.txt"))); String S = br.r...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
685
3,603
2,560
import java.util.*; import java.io.*; public class Main { static Scanner console; public static void main(String[] args) { console = new Scanner(System.in); int n = console.nextInt(); List<Integer> arr= new ArrayList<>(); for(int i = 0; i < n; i++) arr.add( console.nextInt()); Collections.sort(arr); L...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
568
2,554
3,203
import java.io.*; public class Main { public static void main(String[] args) throws Exception { int n = nextInt(); String nn = Integer.toString(n); if(n >= 0){ println(n); } else { println(Math.max(Integer.parseInt(nn.substring(0,nn.length() - 1)), Integer.parseInt(nn.substring(0, nn.length() - 2) ...
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
614
3,197
177
//Author: Patel Rag //Java version "1.8.0_211" import java.util.*; import java.io.*; public class Main { static class FastReader { BufferedReader br; StringTokenizer st; public FastReader(){ br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null |...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,510
177
2,243
import java.io.*; import java.util.*; public class CC { public static void main(String[] args)throws Throwable { MyScanner sc=new MyScanner(); PrintWriter pw=new PrintWriter(System.out); n=sc.nextInt(); s=new char [n]; for(int i=0;i<n;i++) s[i]=sc.next().charAt(0); mem=new int [2*n+1][n+1]; for(int...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
763
2,239
482
//package que_a; import java.io.*; import java.util.*; import java.math.*; public class utkarsh { InputStream is; PrintWriter out; long mod = (long) (1e9 + 7); boolean SHOW_TIME; void solve() { //Enter code here utkarsh //SHOW_TIME = true; int n = ni(); ...
O(n)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,413
481
1,470
import java.util.Scanner; public class D { static long max; public static long[] getOneRange(long min, long max,int bit) { long st=(min&(((1l<<63)-1)&~((1l<<(bit+1))-1)))|(1l<<bit); long end=st|((1l<<(bit+1))-1); long interSt=Math.max(st,min); long interEnd=Math.min(end, max)...
O(log(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,143
1,468
2,059
import java.io.*; import java.util.*; import java.math.*; public class TaskA { void Run() throws IOException { int n=ReadInt(); int[] arr=new int[n]; for(int i=0;i<n;++i) arr[i]=ReadInt(); Arrays.sort(arr); boolean one=true; for(int x : arr) if(x!=1) { one=false; break; } if(one) { f...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
687
2,055
2,025
import java.io.InputStreamReader; import java.util.Arrays; import java.util.Scanner; public class A { /** * @param args */ public static void main(String[] args) { Scanner s = new Scanner(new InputStreamReader(System.in)); int n = s.nextInt(); int [] ar = new int[n]; for (int i = 0; i < n ; i++) { ...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
546
2,021
883
import java.util.*; import java.math.*; public class Main { static final long MOD = 1000000007L; public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int k = scan.nextInt(); int res = -1; int[] arr ...
O(n)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
631
882
3,419
import java.io.*; import java.math.*; import java.util.*; import java.util.Map.Entry; public class StringsProb { private void solve() throws IOException { String s = nextToken(); int res = 0; Map<String , Integer> m = new HashMap<String, Integer>(); for (int i = 0; i < s.length(); i...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
891
3,413
3,751
//package round429; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; public class C2 { InputStream is; PrintWriter out; String INPUT = ""; void solve() { int n = ni(); in...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
2,327
3,743
4,089
import java.io.*; import static java.lang.Math.*; import java.util.*; import java.util.function.*; import java.lang.*; public class Main { final static boolean debug = false; final static String fileName = ""; final static boolean useFiles = false; public static void main(String[] args) throws FileNot...
non-polynomial
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,824
4,078
4,475
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; import java.io.IOException; import java.util.Collections; import java.util.ArrayList; import java.io.InputStream; /** * Built using CHelper...
non-polynomial
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,578
4,464
1,240
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.math.BigInteger; import java.util.StringTokenizer; public class C { private static BufferedReader in; private st...
O(log(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
730
1,239
1,378
import java.util.Scanner; public class Pipeline { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long k = sc.nextLong(); sc.close(); if (k * (k - 1) / 2 + 1 < n) { System.out.println(-1); } else { long l = -1, r = k; while (r - l > 1) { ...
O(log(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
567
1,376
4,463
import java.io.*; import java.util.*; public class Main{ static int[][]memo; static int n,m,in[][]; static int dp(int col,int maxRowMask) { if(col>=Math.min(n, m) || maxRowMask==((1<<n)-1))return 0; if(memo[col][maxRowMask]!=-1)return memo[col][maxRowMask]; int ans=0; int availableBits=maxRowMask^((1...
non-polynomial
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,587
4,452
3,855
import java.io.*; import java.util.*; public class tank { static final FastScanner fs = new FastScanner(); static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) { int t = fs.nextInt(); while(t-->0) { run_case(); } out.cl...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,089
3,845
2,656
import java.io.*; import java.lang.reflect.Array; import java.math.*; import java.util.*; public class icpc { public static void main(String[] args) throws IOException { Reader in = new Reader(); // BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int n = in.nex...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
7,801
2,650
3,879
import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; import java.util.Stack; public class C { private static PrintWriter out = new PrintWriter(System.out); public static void solve(...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
2,264
3,869
2,612
// package cf1209; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.math.BigInteger; import java.util.Arrays; import java.util.Comparator; import java.util.InputMismatchException; import java.util.Random; public class CFA { privat...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
2,104
2,606
415
import java.util.*; import java.io.*; public class Main { BufferedReader in; StringTokenizer str = null; PrintWriter out; private String next() throws Exception{ while (str == null || !str.hasMoreElements()) str = new StringTokenizer(in.readLine()); return str.nextToken(); } private int nextInt() thr...
O(n)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
974
414
943
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long n = scan.nextLong(); long k = scan.nextLong(); long D = 9 + 4 * (2 * k + 2 * n); long y = (- 3 + (long)Math.sqrt(D)) / 2; Sy...
O(log(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
428
942
2,876
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; public class A { FastScanner in; PrintWriter out; public void run() { try { in = new FastScanner(new InputStreamReader(System.in)); out = new...
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
688
2,870
3,788
//package Codeforces.Round718Div1_2; import java.io.*; import java.util.*; public class D { static boolean isValid(int n, int m, int i, int j){ return 0<=i && i<n && 0<=j && j<m; } public static void main(String[] args) throws IOException { Soumit sc = new Soumit(); int n = sc.nex...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
2,089
3,780
1,848
import java.util.*; import java.util.Map.Entry; import java.io.*; import java.lang.reflect.Array; import java.math.*; import java.security.SecureRandom; public class WCS { public static class Vector implements Comparable <Vector> { long x, y; int position; Vector first, second; boolean toReverse; publ...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,869
1,844
2,976
import java.io.*; import java.util.*; public class Main { public static long func(long a, long b) { if (a < b) return func(b, a); if (b < 2) return a; long q = a / b; long r = a - q * b; return q + func(b, r); } public static v...
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
482
2,970
3,088
import java.awt.Point; import java.io.*; import java.math.BigInteger; import java.util.*; import static java.lang.Math.*; public class ProblemA_72 { final boolean ONLINE_JUDGE = System.getProperty("ONLINE_JUDGE")!=null; BufferedReader in; PrintWriter out; StringTokenizer tok = new StringTokenize...
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
3,878
3,082
3,761
import java.util.*; import java.io.*; public class D { public static int dir[][]={{-1,0},{1,0},{0,-1},{0,1}}; public static void main(String[] args) { // Scanner sc=new Scanner(System.in); FastScanner sc = new FastScanner(); FastOutput out = new FastOutput(System.out); int n=sc.nextInt(); int m=sc.nextInt()...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,443
3,753
3,353
import java.util.Scanner; public class prob1 { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s = input.next(); int n = s.length(); int i = n-1; CharSequence temp; for(i = n-1; i > 0; i--) for(int j = 0 ; j <= n-i; j++) { temp = s.subSequence(j, i+j); ...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
507
3,347
3,442
import java.util.*; import java.io.*; import java.math.*; public class Main { public static Scanner scan = new Scanner(System.in); public static boolean bg = true; public static void main(String[] args) throws Exception { String k1 = scan.next(); HashSet<String> met = new HashSet(); ...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
511
3,436
1,913
import java.io.*; import java.util.*; import java.math.*; public class Main { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); StringTokenizer tokenizer=null; public static void main(String[] args) throws IOException { new Main().execute(); } void debug(Object...os) { System.out...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
762
1,909
1,978
import java.io.*; import java.util.*; import java.math.*; public class Teams { BufferedReader in; PrintWriter out; StringTokenizer st; Random rnd; class Pair implements Comparable<Pair> { int a, b; public Pair(int a, int b) { this.a = a; this.b = b; ...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
864
1,974
67
import java.util.*; import java.io.*; public class Waw{ public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long[] a = new long[n]; for(int i=0;i<n;i++) a[i] = sc.nextLong(); long[] p = new long[n]; ...
O(n)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
525
67
3,412
import java.util.Scanner; public class GivenString { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s = input.nextLine(); int max = 0; for(int i = 0; i < s.length(); i++) { for(int j = i + 1; j <= s.leng...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
529
3,406
3,538
import java.io.*; import java.util.*; public class G{ public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter out = new PrintWriter(outputStream); TaskE so...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
2,706
3,531
1,549
import java.util.Arrays; import java.util.HashSet; import java.util.Scanner; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author NAO93 */ public class a { public static void main(String[] args) { Scanner in = new Scanner(System.in); ...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
536
1,547
768
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.util.Arrays; import java.util.StringTokenizer; public class C { static StringTokenizer st; static BufferedReader br;...
O(n)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
786
767
302
import java.util.*; import javax.lang.model.util.ElementScanner6; import java.io.*; public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader inp = new InputReader(inputStream); Prin...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
3,107
302
4,498
import java.util.*; import java.io.*; public class Main { public static void main(String args[]) {new Main().run();} FastReader in = new FastReader(); PrintWriter out = new PrintWriter(System.out); void run(){ out.println(work()); out.flush(); } long mod=1000000007; long gcd(long a,long b) { return b==0?...
non-polynomial
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
814
4,487
2,330
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...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,302
2,325
3,486
import java.io.*; import java.util.*; public class CF1515E{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int md = sc.nextInt(); int k = (n + 1) / 2; int[][] dp = new int[k + 1][n + 1]; dp[0][0] = 1; for (int h = 1; h <= k; h++) for (int l = h; l <...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
543
3,480
1,932
import java.util.Arrays; import java.util.Scanner; public class Round111ProbA { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[]a = new int[n]; int s =0; for(int i =0 ; i < n;i++) { ...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
494
1,928
1,167
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.InputMismatchException; import java.util.*; public class ed817Q3 { public static void main(String[] args){ InputReader in = new InputReader(System.in); PrintWriter out = new PrintWriter(System.out); int t = 1; ...
O(log(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,191
1,166
1,757
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; /** * Date 22.11.2011 * Time 17:49:45 * Author Woodey * $ */ public class A15 { final double eps = 10e-9; class Pair implements Comparable<Pair>{ int x; ...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
788
1,753
1,722
import java.util.Arrays; import java.util.Scanner; public class CottageVillage { public static void main(String[] args){ Scanner scan = new Scanner(System.in); while(scan.hasNext()){ int counter = 0; int numbCottages = scan.nextInt(); int t = scan.nextInt(); House[] cottages = new House[numbCottage...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
890
1,718
2,680
import java.util.*; public class code_1 { public static void main(String[] args) { Scanner in=new Scanner(System.in); int n=in.nextInt(); int a[]=new int[n]; for(int i=0;i<n;i++) a[i]=in.nextInt(); Arrays.sort(a); for(int i=0;i<n-1;i++) { if(a[i]!=-1) { for(int j=i+1;j<n;j...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
505
2,674
4,467
import java.util.*; import java.io.*; public class E { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList<Integer>[][] nexts = new ArrayList[13][]; ArrayList<Integer>[] bs = new ArrayList[13]; int[][] index = new int[...
non-polynomial
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,411
4,456
3,817
// Author : RegalBeast import java.io.*; import java.util.*; public class Main { static final FastReader FR = new FastReader(); static final PrintWriter PW = new PrintWriter(new OutputStreamWriter(System.out)); public static void main(String[] args) { StringBuilder solution = new StringBuilder(); int r...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,389
3,807
2,632
import java.util.*; public final class paint_and_numers { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] a = new int[n]; for(int i=0;i<n;i++) a[i] = in.nextInt(); Arrays.sort(a); int count = 0; boolea...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
511
2,626
3,720
// https://codeforces.com/contest/1497/submission/110250082 import java.io.*; import java.util.*; public class CF1497E2 extends PrintWriter { CF1497E2() { super(System.out); } static class Scanner { Scanner(InputStream in) { this.in = in; } InputStream in; byte[] bb = new byte[1 << 15]; int i, n; byte getc() {...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,026
3,712
3,396
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.Scanner; public class Main20 { static ArrayList<Integer> primes = new ArrayList<Integer>(); static boolean[] prime = new...
O(n^3)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
701
3,390
1,857
import java.util.Scanner; import java.util.Vector; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int a[] = new int[n]; int b[] = new int[n]; for (int i = 0; i < n; i++) ...
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
781
1,853
3,098
import java.io.*; import java.util.*; public class Main { StreamTokenizer in; PrintWriter out; public static void main(String[] args) throws Exception { new Main().run(); } public void run() throws Exception { in = new StreamTokenizer (new BufferedReader(new InputStreamReader(Sys...
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
504
3,092
1,559
import static java.lang.Math.*; import java.io.*; import java.util.*; public class Template { BufferedReader in; PrintWriter out; StringTokenizer st; String next() { while (st==null || !st.hasMoreTokens()) { try { st = new StringTokenizer(in.readLine()); } catch (Exception e) {} } return st....
O(nlog(n))
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
936
1,557
3,279
import java.util.*; public class A { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println("0 0 " + n); } }
O(1)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
378
3,273
4,267
import java.io.InputStream; import java.io.OutputStream; import java.io.IOException; import java.util.ArrayList; import java.io.InputStream; import java.io.BufferedWriter; import java.io.Writer; import java.io.OutputStreamWriter; import java.io.IOException; import java.util.InputMismatchException; import java.io.PrintW...
non-polynomial
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,705
4,256
2,267
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.io.IOException; import java.io.InputStreamReader; import java.io.File; import java.io.FileNotFoundException; import java.util.StringTokenizer; import java.io.BufferedRead...
O(n^2)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,120
2,262
4,244
import java.io.*; import java.util.*; public class TaskE { static int[][] transpose(int[][] a, int n, int m) { int[][] t = new int[m][n]; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { t[j][i] = a[i][j]; } } return t; } ...
non-polynomial
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,136
4,233
390
import java.util.*; import java.math.*; import java.io.*; import static java.lang.Math.*; import static java.util.Arrays.*; import static java.util.Collections.*; public class Main{ // ArrayList<Integer> lis = new ArrayList<Integer>(); // ArrayList<String> lis = new ArrayList<String>(); // PriorityQueue<P> que ...
O(n)
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric. The XML tags are defined as follows: - <TASK>: Describes what the responses are supposed to accomplish. - <CODE>: The code provided to be evaluated. - <EVALUATION_RUBRIC>: Evaluation rubr...
1,511
389