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 |
|---|---|---|---|---|---|---|
3,927 | import java.lang.*;
import java.util.*;
import java.io.*;
public class Main {
void solve() {
int m=ni();
long a[][]=new long[m][];
HashMap<Long,Integer> mp=new HashMap<>();
long TS=0;
long sm[]=new long[m];
for(int i=0;i<m;i++){
int sz=ni();
a... | 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,408 | 3,917 |
815 | import java.io.*;
import java.util.*;
public class Noldbach
{
public Scanner in = new Scanner(System.in);
public PrintStream out = System.out;
public boolean[] yes;
public int n, k;
public void main()
{
n = in.nextInt();
k = in.nextInt();
genPrime();
int i;
yes = new boolean[n+1];
int x;
... | 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... | 772 | 814 |
3,764 | // Don't place your source in a package
import javax.swing.*;
import java.lang.reflect.Array;
import java.text.DecimalFormat;
import java.util.*;
import java.lang.*;
import java.io.*;
import java.math.*;
import java.util.stream.Stream;
// Please name your class Main
public class Main {
static FastScanner fs=new F... | 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,622 | 3,756 |
3,125 | import java.io.*;
import java.util.*;
import java.math.*;
public class Solution implements Runnable {
private BufferedReader in;
private PrintWriter out;
private StringTokenizer st;
private Random rnd;
double Vend;
private double calcFirstSegment(double a, double Vmax, double Vend, double l) {
double Vl = ... | 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,244 | 3,119 |
3,575 | import java.util.*;
import java.io.*;
public class C{
public static void main(String args[]) throws Exception{
Scanner in = new Scanner(new FileReader("input.txt"));
PrintWriter out = new PrintWriter(new File("output.txt"));
int N = in.nextInt();
int M = in.nextInt();
int K = in.nextInt();
int[] X = 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... | 585 | 3,567 |
2,481 | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.InputMismatchException;
import java.io.IOException;
import java.util.ArrayList;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution 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,158 | 2,476 |
4,436 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
/**
* Author -
* User: kansal
* Date: 9/3/11
* Time: 5:28 PM
*/
public class CF85E {
public static void main(String[] args) {
reader = new BufferedRea... | 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,038 | 4,425 |
377 | import java.util.InputMismatchException;
import java.math.BigInteger;
import java.io.*;
import java.util.*;
/**
* Generated by Contest helper plug-in
* Actual solution is at the bottom
*/
public class Main {
public static void main(String[] args) {
InputReader in = new StreamInputReader(System.in);
PrintWrite... | 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,659 | 376 |
2,733 | import java.util.*;
public class maximus {
static long GCD(long a,long b){
if(b==0)return a;
return GCD(b,a%b);
}
public static void main(String [] args){
Scanner in=new Scanner(System.in);
long n=in.nextInt();
if(n<=2){
System.out.print(n);
return;
}
if(n%2==1){
System.out.print((n*(n-1)*(n-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... | 534 | 2,727 |
4,072 | import java.io.*;
import java.util.*;
public class Main {
BufferedReader in = null;
PrintWriter out = null;
int dist(int x1, int y1, int x2, int y2) {
int dx = Math.abs(x1 - x2);
int dy = Math.abs(y1 - y2);
return dx * dx + dy * dy;
}
boolean testBit(int use, int p) {
... | 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,220 | 4,061 |
2,142 | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.TreeSet;
import java.io.BufferedOutputStream;
import java.util.StringTokenizer;
import java.io.Buff... | 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,118 | 2,138 |
761 | //package baobab;
import java.io.*;
import java.util.*;
public class C {
public static void main(String[] args) {
CIO io = new CIO();
try {
Csolver solver = new Csolver(io);
solver.solve();
} finally {
io.close();
}
}
}
class Csolver {
... | 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,864 | 760 |
561 | import java.util.*;
import java.lang.*;
import java.io.*;
public class Main
{
PrintWriter out = new PrintWriter(System.out);
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer tok = new StringTokenizer("");
String next() throws IOException {
if (!tok.hasMoreToke... | 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... | 680 | 560 |
2,432 | import java.util.*;
import java.io.*;
import java.util.Queue;
import java.util.LinkedList;
import java.math.*;
public class Sample implements Runnable
{
public static void solve()
{
int n=i();
int[] a=new int[n];
for(int i=0;i<n;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... | 2,559 | 2,427 |
586 | import java.util.*;
import java.io.*;
public class A6
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int d = in.nextInt();
int ans=2;
int[] a = new int[n];
for(int i=0;i<n;i++)
a[i] = in.nextInt();
for(int i=1;i<n;i++)
{
if(a[i... | 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... | 487 | 585 |
2,822 | import java.util.Scanner;
public class subtractions {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
while(n-->0){
int a=sc.nextInt();
int b=sc.nextInt();
int c=0;
while(a... | 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,816 |
631 | import java.util.Scanner;
public class R025A {
int n;
int[] nums;
public R025A() {
Scanner scanner = new Scanner(System.in);
n = scanner.nextInt();
nums = new int[n];
for(int i=0; i<n; i++) {
nums[i] = scanner.nextInt();
}
}
private void process() {
int[] c = new int[2];
int[] r = new int[2];
... | 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... | 554 | 630 |
592 | import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class A {
static StringTokenizer st;
static BufferedReader br;
static PrintWriter pw;
... | 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... | 654 | 591 |
3,552 | import java.util.LinkedList;
import java.io.FileInputStream;
import java.util.Arrays;
import java.util.ArrayList;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.util.Collection;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Queue;
imp... | 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,128 | 3,545 |
1,109 | import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
public class Div1_503B {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(... | 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... | 759 | 1,108 |
2,406 | /*
* Author Ayub Subhaniya
* Institute DA-IICT
*/
import java.io.*;
import java.math.*;
import java.util.*;
public class A
{
InputStream in;
PrintWriter out;
void solve()
{
int n=ni();
int a[]=na(n);
int INV=0;
for (int i=0;i<n;i++)
for (int j=i+1;j<n;j++)
if (a[i]>a[j])
INV++;
boolea... | O(n^2) | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 1,820 | 2,401 |
3,785 | import java.io.*;
import java.util.*;
public class Main {
public static void main(String args[])
{
FastReader input=new FastReader();
PrintWriter out=new PrintWriter(System.out);
int T=1;
while(T-->0)
{
int n=input.nextInt();
int m=input.nextInt();... | O(n^3) | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 1,038 | 3,777 |
398 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.*;
public class B {
BufferedReader reader;
StringTokenizer tokenizer;
PrintWriter out;
public void solve() throws IOException {
int N = nextInt();
int... | 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,445 | 397 |
1,665 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
public class ProblemA {
public static void main(String[] args) throws IOException {
BufferedReader s = new BufferedReader(new InputStreamRea... | 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... | 523 | 1,662 |
4,238 | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.io.FilterInputStream;
import java.io.BufferedInputStream;
import java.util.Random;
import java.util.Comparator;
import java.io.InputStream;
/**
* @author khokharnikunj8... | 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,462 | 4,227 |
2,836 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.StreamTokenizer;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Has... | 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... | 578 | 2,830 |
3,968 | import java.util.*;
import java.lang.*;
import java.math.*;
import java.io.*;
import static java.lang.Math.*;
import static java.util.Arrays.*;
import static java.util.Collections.*;
// Petya and Spiders
// 2012/08/16
public class P111C{
Scanner sc=new Scanner(System.in);
int INF=1<<28;
double EPS=1e-9;
int h, w... | 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,207 | 3,957 |
1,440 | import java.io.*;
import java.util.*;
public class Example {
BufferedReader in;
PrintWriter out;
StringTokenizer st;
String next() {
while (st == null || !st.hasMoreTokens()) {
try {
st = new StringTokenizer(in.readLine());
} catch (Exception e) {
... | 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,007 | 1,438 |
1,822 | import java.io.*;
import java.util.*;
public class ProblemA {
InputReader in; PrintWriter out;
void solve() {
int n = in.nextInt();
int m = in.nextInt();
int k = in.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = in.nextInt();
Arra... | 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,818 |
2,175 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.*;
public class C {
public static void main(String[] args) {
FastScanner sc = new FastScanner();
int n = sc.nextInt();
long r = sc.nextInt();
double d = 2 * r;
lon... | 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... | 978 | 2,171 |
314 | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args){
try {
new Main().solve();
} catch (Exception e) {
e.printStackTrace();
}
}
ArrayList<Edge>[]edge;
int n,m,cnt=0;
int ord;
int[]order;int[]vis;
Edg... | 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,043 | 314 |
3,018 | //package arbuz;
import java.util.Scanner;
public class Arbuz {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if (n % 4 == 0 || n % 7 == 0 || n % 47 == 0 || n % 74 == 0 || n % 444 == 0 || n % 447 == 0 || n % 474 == 0 || n % 477 == 0) {... | O(1) | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 471 | 3,012 |
1,882 | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution ... | 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,137 | 1,878 |
2,586 |
import java.util.ArrayList;
import java.util.Scanner;
public class PaintTheNumber {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
ArrayList<Integer> l=new ArrayList<Integer>();
for(int i=0; i<n; i++) {
l.add(sc.nextInt());
}
boolean c=fals... | 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... | 545 | 2,580 |
4,441 | /*(c) gorlum0 [at] gmail.com*/
import java.io.*;
import java.util.*;
import java.math.*;
public class E
{
int bitcount(int x) {
int c = 0;
for ( ; x != 0; c++)
x &= x-1;
return c;
}
boolean bit(int x, int i)
{
if (i < 0) return false;
return (x>>i & ... | non-polynomial | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 1,129 | 4,430 |
3,076 | import java.util.*;
import java.io.*;
public class A
{
public static void main(String[] args)
{
Kattio io = new Kattio(System.in);
int n = io.getInt();
int ans = 0;
int V = n;
int A = n;
A -= n/2;
ans += n/2;
V -= A;
ans += A;
... | 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... | 719 | 3,070 |
2,391 | import java.util.Scanner;
public class d {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int size = in.nextInt();
int[] vals = new int[size];
long[] cum = new long[size];
for(int i=0; i<size; i++){
vals[i] = in.nextInt();
int c = 0;
for(int j=0; j<i; 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... | 712 | 2,386 |
2,467 | // Author: aman_robotics
//package math_codet;
import java.io.*;
import java.util.*;
public class lets_do {
FastReader in;
PrintWriter out;
Helper_class h;
final long mod = 1000000009;
final int MAXN = 1000005;
final int lgN = 20;
final long INF = (long)1e18;
final long MAX_Ai = (long... | 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,246 | 2,462 |
494 | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.Input... | O(n) | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags 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,235 | 493 |
4,310 | import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Locale;
import java.util.StringTokenizer;
import java.util.TreeMap;
import java.util.Map.Entry;
public class Solution implements ... | 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,080 | 4,299 |
1,554 | import java.io.*;
import java.math.*;
import java.util.*;
import java.lang.*;
public class Main
{
static Input in;
static Output out;
public static void main(String[] args) throws IOException
{
in = new Input(System.in);
out = new Output(System.out);
run();
out.close();... | 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,923 | 1,552 |
1,576 | import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
... | O(nlog(n)) | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 1,254 | 1,573 |
2,088 | import java.util.Arrays;
import java.util.Scanner;
public class AAA {
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 max = a[0];
... | 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... | 585 | 2,084 |
2,818 | import java.util.*;
public class subtractionn {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
int t;
t=in.nextInt();
while(t!=0)
{
int a=in.nextInt();
int b=in.nextInt();
int total=0,neww=0;
if(a%b==0)
{
System.out.print... | 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... | 606 | 2,812 |
1,779 | import java.io.*;
import java.util.*;
import java.math.*;
import static java.lang.Math.*;
public class Main implements Runnable {
class Home implements Comparable<Home> {
@Override
public int compareTo(Home arg0) {
return st - arg0.st;
}
int st, end;
}
... | 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... | 933 | 1,775 |
4,471 | 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.Comparator;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution i... | non-polynomial | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 1,486 | 4,460 |
1,635 |
/**
* Write a description of class VK2A here.
*
* @author (your name)
* @version (a version number or a date)
*/
import java.util.*;
public class VK2A
{
public static void main(String args[])
{
Scanner S = new Scanner(System.in);
int n = S.nextInt();
int a = S.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... | 567 | 1,632 |
4,194 | import java.io.*;
import java.util.*;
public class Main {
static Scanner in;
static PrintWriter out;
// static StreamTokenizer in; static int next() throws Exception {in.nextToken(); return (int) in.nval;}
public static void main(String[] args) throws Exception {
in = new Scanner(System.in);
out = new PrintWri... | 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... | 739 | 4,183 |
978 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Cf2 {
static boolean ok(long n, long k, long eatten) {
long moves = n-eatten;
long ans = moves*(moves+1)/2;
ans -= eatten;
return ans <= k;
... | 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... | 691 | 977 |
4,387 | import java.io.BufferedReader;
import java.io.FileReader;
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 B {
static int first(int n)
{
int ... | non-polynomial | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 978 | 4,376 |
3,844 | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.Input... | O(n^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,388 | 3,834 |
1,363 | import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
InputStream is;
PrintWriter out;
String INPUT = "" ;
boolean local = false;
int inf=0x7FFFFFFF;
int MOD=(int)(1e9+7);
double eps=1e-5;
double PI=Math.acos(-1);
void solve() {
long maxn=nl();
... | O(log(n)) | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 2,127 | 1,361 |
581 |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = s.nextInt(), d = s.nextInt();
int[] arr = new int[n];
for(int i = 0; i < n; i++){
arr[i] = s.nextInt();
}
Arrays.sort(arr);
int count = 0;
fo... | 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 | 580 |
1,694 |
import java.util.Scanner;
public class Flatwile {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int t = sc.nextInt();
int[] c = new int[n];
int[] a = new int[n];
for (int i=0; i<n; i++){
c[i] = sc.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... | 653 | 1,691 |
1,238 | import java.util.*;
import java.lang.*;
import java.math.*;
import java.io.*;
import static java.lang.Math.*;
import static java.util.Arrays.*;
import static java.util.Collections.*;
public class A{
Scanner sc=new Scanner(System.in);
int INF=1<<28;
double EPS=1e-9;
int mod=(int)1e9+9;
long n, m, k;
void run(... | 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... | 717 | 1,237 |
2,727 | import java.util.Scanner;
public class LCM {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long n = scan.nextLong();
if (n <= 2)
System.out.println(n);
else if (n % 2 == 1)
System.out.println(n * (n - 1) * (n - 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... | 494 | 2,721 |
527 | import java.io.*;
import java.util.Arrays;
import java.util.StringJoiner;
import java.util.StringTokenizer;
import java.util.function.Function;
public class Main {
static String S;
public static void main(String[] args) {
FastScanner sc = new FastScanner(System.in);
S = sc.next();
Sy... | 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,183 | 526 |
2,111 | import java.util.*;
import java.io.*;
import java.math.BigInteger;
public class Problem
{
static int mod = (int) (1e9+7);
static InputReader in;
static PrintWriter out;
static int[] rt;
static int[] size;
static void initialize(int n){
rt = new int[n + 1];
size = new int[n + 1... | 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... | 2,407 | 2,107 |
3,075 | import java.util.Scanner;
public class ToyArmy {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
System.out.println(n / 2 + n);
}
}
| O(1) | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 379 | 3,069 |
1,951 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.Arrays;
import java.util.Comparator;
import java.util.StringTokenizer;
import java.util.logging.Level;
import java.util.logging.Logger;
public class ProblemA {
private final B... | O(nlog(n)) | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 910 | 1,947 |
641 | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StreamTokenizer;
public class Main {
private static StreamTokenizer in;
private static PrintWriter out;
private static int nextInt() throws Exception {
in.nextToken();
return (int)in.nval;
}
private static Stri... | 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... | 681 | 640 |
977 | import java.io.*;
import java.math.BigInteger;
import java.util.*;
import java.lang.*;
import static java.lang.Math.*;
public class Main implements Runnable {
public static void main(String[] args) {
new Thread(null, new Main(), "Check2", 1 << 28).start();// to increse stack size in java
}
static l... | 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,769 | 976 |
203 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class AnnoyingPresent {
//UPSOLVED
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String... | 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... | 557 | 203 |
4,380 | import java.awt.List;
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.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
impo... | 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... | 954 | 4,369 |
2,337 | import java.util.*;
import java.text.*;
import java.io.*;
import java.math.*;
public class code5 {
InputStream is;
PrintWriter out;
static long mod=pow(10,9)+7;
static int dx[]={0,0,1,-1},dy[]={1,-1,0,0};
String arr[];
long dp[][];
void solve() throws IOException
{
int n=ni();
int a[]=na(n);
int q=ni();
... | O(n^2) | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 3,181 | 2,332 |
430 | import java.io.*;
import java.util.*;
public class Main {
private static void solve(InputReader in, OutputWriter out) {
int n = in.nextInt();
List<List<Integer>> g = new ArrayList<>(n + 1);
for (int i = 0; i < n + 1; i++) {
g.add(new LinkedList<>());
}
int deg... | 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,438 | 429 |
3,200 | import java.util.Scanner;
public class A {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String ns = sc.next();
sc.close();
int n1 = Integer.parseInt(ns);
int n2 = Integer.parseInt(ns.substring(0, ns.length() - 1));
int n3 = Integer.parseInt(ns.substring(0, ns.length() ... | 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... | 483 | 3,194 |
4,168 | import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
public class Ideone
{
static double p[][];
static double dp[];
static int n;
public static int BitCount(int u) {
int uCount;
uCount = u - ((u >> 1) & 03333333... | 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... | 845 | 4,157 |
1,581 | import java.awt.geom.*;
import java.io.*;
import java.math.*;
import java.util.*;
import java.util.regex.*;
import static java.lang.Math.*;
public class A {
public A() throws Exception {
int n = in.nextInt();
int[] arr = new int[n];
for (int i=0; i<n; i++) arr[i] = in.nextInt();
int... | 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... | 732 | 1,578 |
1,320 | import java.math.BigInteger;
import java.util.*;
import java.io.*;
public class Contest {
public static void main(String[] args)throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] s=br.readLine().split(" ");
BigInteger x = new BigInteger(s[0]);
BigInt... | 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... | 509 | 1,318 |
351 | import java.io.*;
import java.util.*;
public class Solution {
static BufferedReader br=null;
static PrintWriter pw=null;
static StringTokenizer st=null;
static String FILENAME="";
void nline(){
try {
st=new StringTokenizer(br.readLine());
} catch (IOException e) {
... | 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... | 777 | 350 |
3,262 | import java.io.PrintWriter;
import java.util.Scanner;
public class HexadecimalTheorem {
/**
* @param args
*/
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
PrintWriter out = new PrintWriter(System.out);
out.printf("%d %d %d%n", 0, 0, n);
out.flush(... | 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... | 439 | 3,256 |
2,292 | //package round455;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;
public class C {
InputStream is;
PrintWriter out;
String INPUT = "";
void solve()
{
int n = ni();
int... | O(n^2) | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 1,431 | 2,287 |
4,066 |
import java.awt.Point;
import java.util.Arrays;
import java.util.Scanner;
public class C {
static int[] DP;
static Point[] Next;
static int[][] pair;
static int[] single;
static int n;
public static int get(int mask) {
if (mask + 1 == (1 << n))
return 0;
if (DP[mas... | 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,037 | 4,055 |
2,548 |
import java.io.BufferedOutputStream;
import java.io.PrintWriter;
import java.util.*;
public class E1180D {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
PrintWriter pw = new PrintWriter(new BufferedOutputStream(System.out));
int n = sc.nextInt();
in... | 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... | 778 | 2,542 |
900 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class B {
public static void main(String[] args) throws IOException {
InputReader in = new InputReader();
int n = in.nextInt();
int k = in.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... | 759 | 899 |
2,558 | import java.io.*;
import java.util.*;
public class Main
{
public static void main(String[] args) throws Exception
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine());
String s=br.readLine();
String ss[]=s.split(" ");
int arr[]=new in... | 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... | 536 | 2,552 |
421 | import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;
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... | 1,099 | 420 |
4,476 | import java.io.*;
import java.util.*;
public class Sol2{
final public static int MXN = (1<<21);
public static int good[][];
public static void main(String[] args) throws IOException{
FastIO sc = new FastIO(System.in);
PrintWriter out = new PrintWriter(System.out);
int n = sc.nextInt();
int m = sc.nextInt();
... | 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,319 | 4,465 |
1,015 | import java.util.Scanner;
public class DigitsSequence2 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
long index = scanner.nextLong();
solution1(index);
}
static void solution1(Long index){
int i = 1; // group number
long len ... | 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... | 551 | 1,014 |
2,408 | /*
Keep solving problems.
*/
import java.util.*;
import java.io.*;
public class CFA {
BufferedReader br;
PrintWriter out;
StringTokenizer st;
boolean eof;
final long MOD = 1000L * 1000L * 1000L + 7;
int[] dx = {0, -1, 0, 1};
int[] dy = {1, 0, -1, 0};
void solve() throws IOException {
... | 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,122 | 2,403 |
765 | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
public class main {
public static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
public static PrintWriter pw = new PrintWriter(System.out);
public static String line;
public static StringTokenizer ... | 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... | 816 | 764 |
3,731 | import java.io.*;
import java.util.*;
public class Main {
static final int primeCount = 452;
static final int[] prime = new int[primeCount];
static void build_prime() {
boolean[] notPrime = new boolean[3200];
for (int i = 2; i < 3200; i++) {
if (notPrime[i]) continue;
... | 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,317 | 3,723 |
550 | import java.util.*;import java.io.*;import java.math.*;
public class Main
{
public static void process()throws IOException
{
long n=nl();
if(n%2==0)
{
long a1=(long)Math.sqrt(n);
long a2=(long)Math.sqrt(n/2);
if(a1*a1==n || a2*a2*2==n)
... | O(n) | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 979 | 549 |
3,339 | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.LinkedList;
import java.util.StringTokenizer;
public class GeorgeAndInterestingGraph {
public static void main(String[] args) {
MyScanner sc = new MyScanner();
int N = 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... | 3,319 | 3,333 |
2,242 | /*
* PDPM IIITDM Jabalpur
* Asutosh Rana
*/
import java.util.*;
import java.io.*;
import java.math.*;
public class Main {
long MOD = 1000000007;
InputReader in;
BufferedReader br;
PrintWriter out;
public static void main(String[] args) throws java.lang.Exception {
Main solver = new Main();
solver.in = ne... | 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,657 | 2,238 |
607 | import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.RoundingMode;
import java.util.*;
import java.util.Map.Entry;
public class Main {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private SpaceCharFilter filter;... | 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,978 | 606 |
18 | import java.util.Arrays;
import java.util.Scanner;
public class Solution {
private static int[] a;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt(), m = sc.nextInt();
a = new int[101];
for (int i = 0; i < m; 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... | 576 | 18 |
3,118 | import java.io.*;
import java.util.*;
import java.math.*;
public class D5 {
static int a, v, l, d;
static double w;
static double afterMark( int s, double w) {
if (2 * s * a > v * v - w * w) { // ���� ��������� v. ����� ��
return (v - w) * 1.0 / a + (s - (v * v - w * w) * 1.0 / (2 * a)) / v;
} else { // ��... | O(1) | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | Evaluate the code based on the given task, code, and evaluation rubric. Provide a fair and detailed assessment following the rubric.
The XML tags are defined as follows:
- <TASK>: Describes what the responses are supposed to accomplish.
- <CODE>: The code provided to be evaluated.
- <EVALUATION_RUBRIC>: Evaluation rubr... | 938 | 3,112 |
4,048 | import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.StringTokenizer;
public class realfast implements Runnable {
private static final int INF = (int) 1e9;
int time[]= new int[15];
int g[]= new int [15];
public void solve() throws IOExceptio... | 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,160 | 4,037 |
2,159 | /*
ID: andrew42
LANG: JAVA
TASK:
PROG:
*/
import java.io.*;
import java.util.*;
import java.lang.*;
public class curling {
public static void main(String[] args) throws IOException {
Scanner input = new Scanner(System.in);
int numD = input.nextInt();
double rad = input.nextInt();
int[] xC = new int[numD];
... | 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... | 612 | 2,155 |
664 | import java.util.*;
public class Main {
public static void main(String[] args) {
Main iq = new Main();
Scanner sc = new Scanner(System.in);
int n;
n = sc.nextInt();
int[] naturalNumbers = new int[n];
for (int i = 0; i < naturalNumbers.length; i++) {
natur... | 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... | 570 | 663 |
3,547 | // upsolve with rainboy
import java.io.*;
import java.util.*;
public class CF1187G extends PrintWriter {
CF1187G() { super(System.out); }
static class Scanner {
Scanner(InputStream in) { this.in = in; } InputStream in;
int k, l; byte[] bb = new byte[1 << 15];
byte getc() {
if (k >= l) {
k = 0;
try {... | 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,911 | 3,540 |
4,314 | //package contest10D;
import java.math.*;
import java.util.*;
import static java.math.BigInteger.*;
import static java.lang.Math.*;
import static java.util.Arrays.*;
import static java.util.Collections.*;
public class Main {
static void debug(Object... os) {
System.err.println(deepToString(os));
}
public static ... | 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... | 736 | 4,303 |
2,549 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.List;
import java.util.StringTokenizer;
public class D {
int[][] fast(int n, int m){
int[][] ans = new int[2][n * m];
int c = 0;
for (int left = 1, ri... | 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,346 | 2,543 |
4,233 | import java.util.*;
public class Main {
public static class Pair implements Comparable<Pair> {
int k, x;
public Pair(int k) {
this.k = k;
}
public void update(int x) {
this.x = Math.max(this.x, x);
}
public int compareTo(Pair other) {
... | 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,270 | 4,222 |
3,487 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt(), md = sc.nextInt();
int k = (n + 1) / 2;int ans = 0;
int[][] dp = new int[k + 1][n + 1];dp[0][0] = 1;
for (int h = 1; h <= k; h++)
... | 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... | 536 | 3,481 |
3,287 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Solver {
StringTokenizer st;
BufferedReader in;
PrintWriter out;
public static void main(String[] args) throws NumberFormatException,... | 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... | 608 | 3,281 |
1,803 | import java.util.Arrays;
import java.util.Scanner;
public class Main2 {
public static void main(String args[]){
Scanner input = new Scanner(System.in);
int n = input.nextInt();
int m = input.nextInt();
int k = input.nextInt();
int[] num = new int[n];
for(int i = 0 ... | 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... | 503 | 1,799 |
2,021 | //package codeforces.br22;
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* User: Kandy
* Date: 29.06.2010
* Time: 21:07:24
*/
public class ProblemA {
public void solve() {
boolean oj = true;
try {
Reader reader = oj ? new 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,002 | 2,017 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.