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 |
|---|---|---|---|---|---|---|
4,101 |
import java.util.*;
import java.io.*;
import java.awt.Point;
import java.math.BigInteger;
import static java.lang.Math.*;
// Solution is at the bottom of code
public class ProblemC_008 implements Runnable{
final boolean ONLINE_JUDGE = System.getProperty("ONLINE_JUDGE") != null;
BufferedReader in;
OutputWrit... | 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... | 2,323 | 4,090 |
208 | import static java.lang.Integer.parseInt;
import static java.lang.Long.parseLong;
import static java.lang.Math.min;
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 cla... | 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... | 865 | 208 |
2,440 | 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.util.HashMap;
import java.util.InputMismatchException;
import java.io.IOException;
import java.util.ArrayList;
import java.io.Writer;
i... | 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,631 | 2,435 |
1,138 |
import java.util.*;
import java.lang.*;
import java.io.*;
public class ER23C {
static long s;
public static void main (String[] args) throws java.lang.Exception {
InputReader in = new InputReader(System.in);
PrintWriter w = new PrintWriter(System.out);
long n = in.nextLong();
... | 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,475 | 1,137 |
1,237 | import java.io.*;
import java.util.*;
public class CF {
long mod = (long) 1e9 + 9;
class Pair {
long a, b;
public Pair(long a, long b) {
super();
this.a = a % mod;
this.b = b % mod;
}
}
int k;
long pow(long n, long k) {
if (k == 0)
return 1;
long m1 = pow(n, k / 2);
m1 = (m1 * m1) % ... | 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,381 | 1,236 |
4,034 | import java.io.*;
import java.util.*;
import static java.lang.Math.*;
public class G1 {
static int n, T, duration[], type[];
static long dp[][][], mod = (long) 1e9 + 7;
public static void main(String[] args) throws Exception {
new Thread(null, new Runnable() {
public void run() {
... | 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... | 860 | 4,023 |
3,740 | import java.io.*;
import java.util.*;
public class C {
int removeSq(int x) {
for (int i = 2; i * i <= x; i++) {
while (x % (i * i) == 0) {
x /= i * i;
}
}
return x;
}
void submit() {
int n = nextInt();
HashMap<Integer, Integer> map = new HashMap<>();
for (int i = 0; i < n; i++) {
int x =... | 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,501 | 3,732 |
4,140 | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.StringTokenizer;
import java.awt.Point;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**... | 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,244 | 4,129 |
884 | import java.io.*;
import java.util.*;
public class Main {
boolean eof;
public String nextToken() {
while (st == null || !st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine());
} catch (Exception e) {
eof = true;
return "-1";
}
}
return st.nextToken();
}
public 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... | 837 | 883 |
1,006 | import java.util.Scanner;
public class A1177 {
public static long exponential(long a, long b){
long result = 1;
for(int i=0;i<b;i++){
result *= a;
}
return result;
}
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
... | 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... | 546 | 1,005 |
3,247 | import java.io.*;
import java.util.*;
import java.math.*;
import static java.lang.Math.*;
import static java.lang.Integer.parseInt;
import static java.lang.Long.parseLong;
import static java.lang.Double.parseDouble;
import static java.lang.String.*;
public class Main {
public static void main(String[] arg... | 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... | 468 | 3,241 |
219 |
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class cf2 {
static final double EPS = 1e-9;
public static void main(String[] args) thro... | 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,566 | 219 |
1,514 | import java.util.Scanner;
public class Main2 {
public static void main(String args[]){
Scanner input = new Scanner(System.in);
long s = input.nextLong();
long e = input.nextLong();
System.out.println(count(s,e));
}
public static long count(long s,long e){
int nco... | 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... | 568 | 1,512 |
382 | import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.InputMismatchException;
import java.util.Map;
/**
* Created by hama_du on 2014/09/21.
*/
public class ProblemB {
public static void main(String[] args) {
... | 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,788 | 381 |
522 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
import static java.lang.Math.*;
public class Main {
private FastScanner scanner = new FastScanner();
public static void main(String[] args) {
new Main().solve();
}
private void ... | 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... | 964 | 521 |
4,486 | import java.util.*;
import java.io.*;
public class EdA {
static long[] mods = {1000000007, 998244353, 1000000009};
static long mod = mods[0];
public static MyScanner sc;
public static PrintWriter out;
public static void main(String[] omkar) throws Exception{
// TODO Auto-generated method stub
sc = new MyS... | 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,711 | 4,475 |
1,533 | import java.util.*;
import java.io.*;
public class a {
public static void main(String[] args) throws IOException
{
input.init(System.in);
int n = input.nextInt(), k = input.nextInt();
TreeSet<Integer> ts = new TreeSet<Integer>();
int[] data = new int[n];
for(int i = 0; i<n; i++)
{
data[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... | 686 | 1,531 |
1,227 | import java.util.*;
import java.io.*;
public class A2 {
/*
*/
public static void main(String[] args) throws Exception {
uu.s1();
uu.out.close();
}
public static class uu {
public static BR in = new BR();
public static PrintWriter out = new PrintWriter(new BufferedWriter... | 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,519 | 1,226 |
2,409 | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual soluti... | 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... | 904 | 2,404 |
3,142 | import static java.lang.Math.*;
import static java.util.Arrays.*;
import java.io.*;
import java.util.*;
public class Main {
static boolean LOCAL = System.getSecurityManager() == null;
Scanner sc = new Scanner(System.in);
void run() {
double a = sc.nextDouble(), v = sc.nextDouble();
double L = sc.nextDouble(),... | 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... | 1,126 | 3,136 |
2,095 | import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;
public class ProblemA {
private void solve() throws IOException {
Scanner stdin = new Scanner(new 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... | 575 | 2,091 |
3,629 | import java.io.*;
import java.util.*;
public class Main {
static BufferedReader br;
static PrintWriter out;
static StringTokenizer st;
static int[][] moves = new int[][]{{0, 1}, {1, 0}, {-1, 0}, {0, -1}};
static boolean correct(int x, int y, int n, int m) {
return (x >= 0 && x < ... | 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,047 | 3,621 |
3,162 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class A {
static class Scanner{
BufferedReader br=null;
StringTokenizer tk=null;
public Scanner(){
br=new BufferedReader(new InputStreamReader(System.in));
}
public Str... | 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... | 629 | 3,156 |
1,353 | //package round371;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;
public class BT {
Scanner in;
PrintWriter out;
String INPUT = "";
int q(int r1, int c1, int r2, int c2)
{
out.printf("? %d %d %d %d\n", r1+1, c1+1, r2+1, c2+1);
out.flush();
return ni();
}
void e(int r... | 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,766 | 1,351 |
3,664 | import java.io.OutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.File;
import java.io.FileNotFoundExc... | 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,947 | 3,656 |
3,321 | import java.io.*;
import java.util.*;
public class CF387D {
static class A {
ArrayList<Integer> list = new ArrayList<>();
int u, v, d;
}
static final int INF = Integer.MAX_VALUE;
static boolean bfs(A[] aa, int n) {
ArrayDeque<Integer> q = new ArrayDeque<>();
for (int u = 1; u <= n; u++)
if (aa[u].v > 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... | 1,181 | 3,315 |
3,503 | import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
import static java.util.stream.Collectors.toList;
pu... | 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... | 4,428 | 3,497 |
4,203 | import java.util.Locale;
import java.util.Scanner;
public class E {
public static void main(String[] args) {
new E().run();
}
private void run() {
Locale.setDefault(Locale.US);
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
double[][] p = new double[n][n];
for (int i = 0; i < n; i++) {
f... | 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... | 753 | 4,192 |
3,471 | import java.util.Scanner;
public class p23a {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
char[] x = in.next().toCharArray();
int min = 0;
int max = x.length;
while(true) {
if(max-min == 1)
break;
... | 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... | 565 | 3,465 |
4,496 | // practice with rainboy
import java.io.*;
import java.util.*;
public class CF1238E extends PrintWriter {
CF1238E() { super(System.out, true); }
Scanner sc = new Scanner(System.in);
public static void main(String[] $) {
CF1238E o = new CF1238E(); o.main(); o.flush();
}
static final int INF = 0x3f3f3f3f;
void ... | 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... | 763 | 4,485 |
2,617 | import java.io.*;
import java.util.*;
import java.util.Map.Entry;
public class ProblemA {
public static void main (String args[]) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine());
String s1=br.readLine();
String[] s=s1.split(" ")... | 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... | 598 | 2,611 |
3,551 | import java.io.*;
import java.util.*;
import java.math.*;
public class Main{
public static void main(String[] Args) throws Exception {
Scanner sc = new Scanner(new FileReader("input.txt"));
int n,m,k;
Integer lx,ly;
boolean d[][];
n = sc.nextInt(); m = sc.nextInt(); k = 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... | 749 | 3,544 |
1,984 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import java.util.Arrays;
public class A {
static class team implements Comparable<team>
{
int problems;
int penalty;
public team(int problems,int penalty)
{
this.penalty=pena... | 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... | 779 | 1,980 |
3,086 | import java.util.Scanner;
public class Task1 {
public static void main(String[] args) {
int n = new Scanner(System.in).nextInt();
System.out.println(n*3/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... | 373 | 3,080 |
4,366 | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int V = in.nextInt();
int E = in.nextInt();
boolean [][] G = new boolean [V][V];
for (int i = 0; i < E; i++) {
int u = in.nextInt()-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... | 765 | 4,355 |
1,799 | import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner in = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out);
int n = in.nextInt(), m = in.nextInt(), k = in.nextInt();
int[] a = 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... | 524 | 1,795 |
2,407 | import java.util.Scanner;
public class D {
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();
}
int ans = 0;
for(int i = 0; i < n; ++i) {
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... | 567 | 2,402 |
2,955 | import java.io.*;
import java.util.*;
public class p343a
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
System.out.println();
long a = sc.nextLong();
long b = sc.nextLong();
if(a==b) System.out.println("1");
else if(b==1) System.o... | 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... | 553 | 2,949 |
2,193 | /*
*
* @Author Ajudiya_13(Bhargav Girdharbhai Ajudiya)
* Dhirubhai Ambani Institute of Information And Communication Technology
*
*/
import java.util.*;
import java.io.*;
import java.lang.*;
public class Code3
{
public static void main(String[] args)
{
InputReader in = new InputReader(System.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... | 2,645 | 2,189 |
4,022 | 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.ArrayList;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is... | 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,669 | 4,011 |
269 | import java.io.*;
import java.util.*;
public class ayyyyyy
{
public static void main(String[] args) { new ayyyyyy(); }
Scanner in = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out);
int t, n;
int[] a;
ayyyyyy()
{
t = in.nextInt();
while (t --> 0)
{
a = new int[n = 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... | 574 | 269 |
2,975 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class RationalResistance {
public static void main(String args[]) throws IOException{
BufferedReader f= new BufferedReader(new InputStreamReader(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... | 519 | 2,969 |
2,041 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
//package a_vtoray_poriadkovay_statistika;
import java.util.Arrays;
import java.util.Scanner;
/**
*
* @author kal1sha
*/
public class Main {
/**
* @param args the command line arguments
*/
public ... | 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... | 598 | 2,037 |
3,099 | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StreamTokenizer;
public class A {
private static StreamTokenizer in;
private static PrintWriter out;
private static int nextInt() throws Exception{
in.nextToken();
return (int)in... | 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... | 502 | 3,093 |
3,845 | import java.io.*;
import java.util.*;
public class C {
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st ... | 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,300 | 3,835 |
2,575 | import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) {
FastReader in = new FastReader();
int n = in.nextInt();
int[] a = new int[101];
for (int i = 0; i < n; i++) {
a[in.nextInt()]++;
}
int count = 0;
... | 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... | 951 | 2,569 |
305 | import java.util.*;
import java.io.*;
public class Solution
{
public static void main(String [] args) throws IOException
{
PrintWriter pw=new PrintWriter(System.out);//use pw.println() not pw.write();
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenize... | 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... | 2,447 | 305 |
3,818 | import java.util.*;
import java.lang.*;
import java.io.*;
public class Main {
static class Fast {
StringTokenizer st;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
public String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(... | 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,319 | 3,808 |
1,315 | import java.math.*;
import java.util.*;
import java.io.*;
public class Main {
void solve() {
long x=nl(),k=nl();
if(x==0) {
pw.println(0);
return;
}
long d=modpow(2,k,M);
long ans=mul(2,d,M);
ans=mul(ans,x,M)%M;
ans++;
ans%=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,450 | 1,313 |
695 | import java.io.*;
import java.util.*;
public class Solution {
private BufferedReader in;
private PrintWriter out;
private StringTokenizer st;
void solve() throws IOException {
String s = next();
int u = s.indexOf('R');
int v = s.indexOf('C');
if (u == 0 && v != -1 && u < v) {
String a = s.substring(u... | 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... | 945 | 694 |
385 | import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.Arrays;
import java.io.BufferedWriter;
import java.util.Set;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.Writer;
import java.util.HashSet;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual... | 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,480 | 384 |
1,000 | import java.util.*;
public class global{
public static void main(String s[]){
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
String st = String.valueOf(n);
if(st.length()==1){
System.out.println(n);
}else{
long val = 1;
long prev=9;
long total=9;
long late=9;
for(int... | 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... | 583 | 999 |
3,012 | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
String a=buffer.readLine();
int b=Integer.parseInt(a);
if(b%4==0 || b%7==0 || b%44==0 || b%47==0 || b%74==0 || b%77==0 || b%4... | 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... | 517 | 3,006 |
508 | 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... | 675 | 507 |
4,007 | /**
* BaZ :D
*/
import java.util.*;
import java.io.*;
import static java.lang.Math.*;
public class ACMIND
{
static FastReader scan;
static PrintWriter pw;
static long MOD = 1_000_000_007;
static long INF = 1_000_000_000_000_000_000L;
static long inf = 2_000_000_000;
public static void main(Str... | 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... | 2,129 | 3,996 |
3,319 |
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.InputMismatchException;
import java.util.LinkedList;
public class D {
static LinkedList<Integer>[] E;
static int[] M;
static boolean[] visited;
static int n;
static int center;
public static bool... | 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,754 | 3,313 |
741 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.util.ArrayList;
import java.util.Scanner;
/**
*
* @author Ahmed
*/
public class Watermelon {
static class Pas... | 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... | 675 | 740 |
1,731 | import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
Scanner in;
PrintWriter out;
static class House implements Comparable <House>{
int len;
int pos;
House(Scanner in){
pos = in.nextInt() * 2;
len = 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... | 701 | 1,727 |
3,943 | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.Reader;
import java.io.IOException;
import java.util.StringTokenizer;
/*
* @author Tnascimento
*/
public class MaeDosDragoes {
public static PrintWriter saida = new PrintWriter(System.out, false);
public st... | 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... | 986 | 3,932 |
985 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
StringTokenize... | 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... | 445 | 984 |
356 |
import com.sun.org.apache.xpath.internal.axes.SubContextList;
import java.util.Scanner;
/**
*
* @author Madi
*/
public class Round42CC {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
String s = sc.nextLine();
... | 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... | 569 | 355 |
190 | import java.util.Scanner;
public class NickAndArray {
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int array[]=new int[n];
int max=Integer.MAX_VALUE;
int index=0;
for(int i=0;i<n;i++)
{
int k=sc.nextInt();
array[i]=k;
if(array[i]>=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... | 499 | 190 |
2,293 | 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... | 985 | 2,288 |
3,598 | /*
If you want to aim high, aim high
Don't let that studying and grades consume you
Just live life young
******************************
What do you think? What do you think?
1st on Billboard, what do you think of it
Next is a Grammy, what do you think of it
However you think, I’m sorry, but shit, I have no fcking inter... | 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... | 990 | 3,590 |
1,490 | import java.awt.Point;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.StringTokenizer;
import static java.lang.Math.*;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Character.*;
import s... | 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... | 817 | 1,488 |
1,462 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;
public class Solver {
StringTokenizer st;
BufferedReader in;
PrintWriter out;
public static void 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,514 | 1,460 |
3,600 | import java.io.*;
import java.util.*;
import java.lang.*;
public class Main {
public static void main(String[] args) throws IOException {
InputStream input = System.in;
OutputStream output = System.out;
InputReader in = new InputReader(new FileReader(new File("input.txt")));
PrintWr... | 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,126 | 3,592 |
4,141 | import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.StringTokenizer;
... | 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,567 | 4,130 |
2,863 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String [] line = br.readLine().split(" ");
long l = Long.parseLo... | 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 | 2,857 |
4,388 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.StringTokenizer;
public class Main {
static long[][] memo;
static boolean[][] adjMat;
static in... | 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,050 | 4,377 |
740 | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner in=new Scanner(System.in);
String str=in.next();
int cnt=0;
for(int i=0;i<str.length();++i) {
if(str.charAt(i)=='1') {
++cnt;
}
}
int i=0;
for(;i<str.length();++i) {
if(str.charAt(i)=='0') {
S... | 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... | 504 | 739 |
2,474 | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] arr = new int[n];
arr[0] = sc.nextInt();
for (int i = 1; i < n; i++) {
arr[i] = arr[i - 1] + sc.nextInt();
... | 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... | 864 | 2,469 |
1,200 | import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
public class CFFF {
static PrintWriter out;
static final int oo = 987654321;
static final long mod = (long)(1e9)+9;
public static void main(String[] args) {
MScanner sc = new MScanner();
... | 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,348 | 1,199 |
3,608 |
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
public class Main {
static class Point {
int x;
int y;
Point(int a, int b)... | 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... | 968 | 3,600 |
610 | import java.util.Arrays;
import java.util.Scanner;
public class SonyaAndHotels {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int d = sc.nextInt();
int[] locs = new int[n];
for (int i = 0; i < n; i++) {
locs[... | 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... | 523 | 609 |
195 | import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Equator {
public static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
public static ... | 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... | 766 | 195 |
120 | 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(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... | 1,100 | 120 |
1,026 | import java.io.*;
import java.util.*;
public class digits {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
long k = Long.parseLong(br.readLine());
long temp = 9 * (int)Math.pow(10,0);
int count =... | 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... | 518 | 1,025 |
2,324 | import java.util.Scanner;
public class Main {
public static void main(String[] args){
long MOD = 1000000007;
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long[][]dp = new long[n][5010];
char[] program = new char[n];
for(int i = 0; i < n; i++){
program[i] = sc.next().charAt(0);
}
... | 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... | 640 | 2,319 |
1,177 | 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,190 | 1,176 |
1,903 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.InputMismatchException;
public class R111_D2_A {
public static void main(String[] args) {
InputReader in = new InputReader(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... | 1,502 | 1,899 |
1,251 | import java.io.*;
import java.math.BigInteger;
import java.util.StringTokenizer;
public class C {
public static void main(String[] args) throws IOException {
init(System.in);
BigInteger x = new BigInteger(next());
if (x.compareTo(BigInteger.ZERO) == 0) {
System.out.println(0);
... | 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... | 669 | 1,250 |
3,787 | // package com.company.codeforces;
import java.util.*;
public class Solution {
static int n,m,h[][],v[][];
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
n=input.nextInt();
m=input.nextInt();
int k=input.nextInt();
h=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... | 880 | 3,779 |
1,867 | import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.*;
public class D {
static HashMap<Long, Integer> comp = new HashMap<Long, Integer>()... | 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,117 | 1,863 |
3,137 | import java.util.*;
import java.io.*;
public class Traffic extends Template{
public double search1(int a, int w, int d){
double s = 0;
double l = 2*w+2*a*d;
int repeat = 100;
while( repeat-- > 0 ){
double x = (s+l)/2;
if( a*a*x*x + 2*a*w*x - w*w - 4*a*d > 0 ){
l = x;
} else {
s = x;
}
}
... | 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... | 1,119 | 3,131 |
4,033 |
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.math.BigInteger;
import java.nio.charset.Charset;
import java.util.*;
public class CFContest {
public static void main(String[] args) throws Exception {
boolean local = System.... | 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... | 5,583 | 4,022 |
2,571 | import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Scanner;
public class a1 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int a[] = new int[n];
HashMap<Integer,ArrayList<Integer>> h = new HashMap<>();
boolean... | 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... | 643 | 2,565 |
4,367 | import java.util.*;
import java.io.*;
public class Main implements Runnable {
private void solution() throws IOException {
int n = in.nextInt();
int m = in.nextInt();
boolean[][] adj = new boolean[n][n];
long res = 0;
for (int i = 0; i < m; ++i) {
int x = in.nextInt();
int y = in.nextInt();
adj[x -... | 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,062 | 4,356 |
2,981 | import java.util.*;
public class c {
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
long a = input.nextLong(), b = input.nextLong();
System.out.println(gcd(a, b));
}
static long gcd(long a, long b)
{
if(b==1) return a;
if(a==1) return b;
if(a>b) return a/b + gcd... | 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... | 438 | 2,975 |
290 | import java.io.*;
import java.util.*;
public class Main {
private static void solve(InputReader in, OutputWriter out) {
int n = in.nextInt();
if (n < 6) {
out.println(-1);
} else {
int m = (n - 2);
for (int i = 2; i <= m; i++) {
out.prin... | 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,148 | 290 |
3,043 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
if (((n % 4) == 0) || ((n % 7) == 0) || ((n % 44) == 0) || ((n % 47) == 0) || ((n % 74) == 0) || ((n % 77) == 0) || ((n % 444) == 0) || ((n % 447) == 0) || ((n % 474... | 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... | 565 | 3,037 |
3,511 | // Main Code at the Bottom
import java.util.*;
import java.io.*;
public class Main{
//Fast IO class
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
boolean env=System.getProperty("ONLINE_JUDGE") != null;
//env=true;
if(!en... | 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,152 | 3,505 |
97 | import java.io.*;
import java.util.*;
public class cf {
static class FastScanner {
BufferedReader br;
StringTokenizer st;
public FastScanner() {
try {
br = new BufferedReader(new InputStreamReader(System.in));
st = new StringTokenizer(br.readLine()... | 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... | 591 | 97 |
1,728 | import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;
public class R015A {
final double EPS = 1e-9;
boolean isEqual(double x, double y) {
return Math.abs(x-y) <= EPS * Math.max(Math.abs(x), Math.ab... | 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... | 929 | 1,724 |
505 | //package contese_476;
import java.util.*;
public class q1
{
int m=(int)1e9+7;
public class Node
{
int a;
int b;
public void Node(int a,int b)
{
this.a=a;
this.b=b;
}
}
public int mul(int a ,int b)
{
a=a%m;
b=b%m;
return((a*b)%m);
}
public int pow(int a,int b)
{
int x=1;
while(b>0)
{
if(b%2!=0)
x=mul... | 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... | 781 | 504 |
1,323 |
import java.util.Scanner;
public class CF489_C {
static long mod = 1000000007;
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
long x = s.nextLong(), k = s.nextLong();
if (x == 0) {
System.out.println(0);
return;
}
long max = x % mod;
long temp = power(2, k, mod);
t... | 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... | 919 | 1,321 |
3,675 | //package C;
import java.io.*;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Queue;
public class Fire_Again {
static int N;
static int M;
static int K;
private class Pos {
public int r;
public int c;
int last;
public Pos(int r,int c, int last... | 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... | 998 | 3,667 |
3,497 | //make sure to make new file!
import java.io.*;
import java.util.*;
public class EG14{
public static long MOD;
public static int MAX = 405;
public static long[] fac;
public static long[] ifac;
public static void main(String[] args)throws IOException{
BufferedReader f = new BufferedReader(... | 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,176 | 3,491 |
2,305 | import java.awt.*;
import java.io.*;
import java.math.*;
import java.util.*;
public class TaskC {
public static void main(String[] args) {
new TaskC().run();
}
void solve(){
int n = in.nextInt();
String s[] = new String[n];
for(int i = 0; i < n; i++) s[i] = in.next();
if(s[n-1].compareTo("f") == 0)... | 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... | 980 | 2,300 |
2,902 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.util.Scanner;
/**
*
* @author RezaM
*/
public class A {
public static void main(String[] args) {
Scanner... | 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... | 467 | 2,896 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.