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 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 39