identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_566922 | CDSS | #include <stdio.h>
int main(void){
int a;
int p;
scanf("%d %d", &a, &p);
a = a * 3;
int r = (a + p) / 2;
printf("%d\n", r);
return 0;
}
| 128 | memory_bytes | {'s_id': 's980566784', 'p_id': 'p03029', 'u_id': 'u101181042', 'date': '1558919130', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a;\n int p;\n scanf(\"%d %d\", &a, &p);\n a = a * 3;\n int r = (a + p) / ... |
CDSS_313999 | CDSS | #include <stdio.h>
int main(void)
{
long double r;
const long double pi = 3.14159265359;
scanf("%Lf", &r);
printf("%Lf %Lf\n", pi*r*r, 2.0*pi*r);
return 0;
} | 652 | memory_bytes | {'s_id': 's617631157', 'p_id': 'p02400', 'u_id': 'u871224043', 'date': '1462214444', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '164'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tlong double r;\n\tconst long double pi = 3.14159265359;\n\tscanf(\"%Lf\", &r);\n\tprintf(... |
CDSS_458471 | CDSS | #include <stdio.h>
int gcd(int p, int q) {
while (q != 0) {
int r = p % q;
p = q;
q = r;
}
return p;
}
int main() {
int k;
scanf("%d", &k);
long sum = 0;
for (int a=1; a<=k; a++)
for (int b=1; b<=k; b++)
for (int c=1; c<=k; c++)
sum += gcd(gcd(a, b), c);
printf("%ld\n",... | 1,724 | memory_bytes | {'s_id': 's927156883', 'p_id': 'p02713', 'u_id': 'u085059942', 'date': '1595381685', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '213', 'memory': '1724', 'code_size': '343'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint gcd(int p, int q) {\n while (q != 0) {\n int r = p % q;\n p = q;\n q = r;\n }\n return p;\n}\n... |
CDSS_532255 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char S[3],T[3];
gets(S);
gets(T);
int i;
int cnt = 0;
for(i=0; i<3; i++)
{if(S[i]==T[i])cnt++;}
printf("%d\n",cnt);
return 0;
}
| 128 | memory_bytes | {'s_id': 's492850698', 'p_id': 'p02921', 'u_id': 'u666976277', 'date': '1567367256', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '217'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n char S[3],T[3];\n gets(S);\n gets(T);\n int i;\n int cnt = 0;\... |
CDSS_469047 | CDSS |
#include <stdio.h>
int main()
{
char string[6];
scanf("%s",string);
if(string[2]==string[3])
{
if(string[4]==string[5])
{
printf("Yes");
}
else
{
printf("No");
}
}
else
{
printf("No");
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's144162271', 'p_id': 'p02723', 'u_id': 'u214543645', 'date': '1585443825', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '318'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\n\nint main()\n{\n char string[6];\n scanf(\"%s\",string);\n if(string[2]==string[3])\n {\n ... |
CDSS_718545 | CDSS | #include <stdio.h>
int main()
{
long long int n,m;
scanf("%lld%lld",&n,&m);
if(2*n<=m)
{
printf("%lld",n+(m-2*n)/4);
}
else
{
printf("%lld",m/2);
}
return 0;
}
| 128 | memory_bytes | {'s_id': 's387166484', 'p_id': 'p03799', 'u_id': 'u863370423', 'date': '1544131407', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '212'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n long long int n,m;\n scanf(\"%lld%lld\",&n,&m);\n if(2*n<=m)\n {\n printf(\"%... |
CDSS_708712 | CDSS | #include <stdio.h>
#include <string.h>
int main() {
char a[20], b[20], c[20];
scanf("%s %s %s", &a, &b, &c);
int lenA = strlen(a);
int lenB = strlen(b);
if (a[lenA-1] == b[0] && b[lenB-1] == c[0]){
printf("YES\n");
}
else printf("NO\n");
return 0;
} | 1,664 | memory_bytes | {'s_id': 's390665341', 'p_id': 'p03729', 'u_id': 'u816631826', 'date': '1596049916', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1664', 'code_size': '267'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main() {\n\t\n\tchar a[20], b[20], c[20];\n\tscanf(\"%s %s %s\", &a, &b, &c);\n\t\n\tin... |
CDSS_712804 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
int i,j,sum;
char odd[100],even[100],pass[200];
gets(odd);
gets(even);
sum=strlen(odd)+strlen(even);
for(i=0;i<sum;i++)
{
if(i%2==0)
pass[i]=odd[i/2];
else
pass[i]=even[(i-1)/2];
}
pass[i]='\0';... | 128 | memory_bytes | {'s_id': 's219790316', 'p_id': 'p03760', 'u_id': 'u816631826', 'date': '1510622072', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '352'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n int i,j,sum;\n char odd[100],even[100],pass[200];\n gets(odd);\n ... |
CDSS_304503 | CDSS | #include<stdio.h>
int main(void){
int a,b,c,i,j,k=0;
scanf("%d %d %d",&a,&b,&c);
for(i=a;i<=b;i++){
if(c%i==0)k++;
}
printf("%d\n",k);
return 0;
} | 596 | memory_bytes | {'s_id': 's167617390', 'p_id': 'p02398', 'u_id': 'u789887850', 'date': '1439956451', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '168'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\n\tint a,b,c,i,j,k=0;\n\t\n\t\tscanf(\"%d %d %d\",&a,&b,&c);\n\t\t\tfor(i=a;i<=b;i++){\n\t\t\... |
CDSS_389967 | CDSS | #include<stdio.h>
long long n,r[16384]={0};
void rep(long long x,long long y,long long z,long long tg){
if(x*x+y*y+z*z+x*y+y*z+z*x>n){return;}
r[x*x+y*y+z*z+x*y+y*z+z*x]++;
if(tg<=0){rep(x+1,y,z,0);}
if(tg<=1){rep(x,y+1,z,1);}
if(tg<=2){rep(x,y,z+1,2);}
}
int main(){
long long i;
scanf("%lld",&n);
re... | 1,732 | memory_bytes | {'s_id': 's451366288', 'p_id': 'p02608', 'u_id': 'u721060623', 'date': '1594674050', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1732', 'code_size': '389'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nlong long n,r[16384]={0};\n\nvoid rep(long long x,long long y,long long z,long long tg){\n if(x*x+y*y+z*z+x*y+... |
CDSS_268959 | CDSS | #include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a>b){
printf("a > b");
}
else if(a<b){
printf("a < b");
}
else{
printf("a == b");
}
printf("\n");
return 0;
} | 584 | memory_bytes | {'s_id': 's029836231', 'p_id': 'p02391', 'u_id': 'u643729574', 'date': '1474437704', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '192'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n if(a>b){\n printf(\"a > b\");\n }\n else if(a<b){\n printf... |
CDSS_135722 | CDSS | #include<stdio.h>
static const int N = 100;
int main(){
int M[N][N];
int n, u, k, v;
scanf("%d",&n);
for(int i=0;i<n;i++){
for(int j=0;j<n;j++)M[i][j] = 0;
}
for(int i=0;i<n;i++){
scanf("%d %d", &u, &k);
u--;
for(int j=0;j<k;j++){
scanf(" %d",&v);
v--;
M... | 2,060 | memory_bytes | {'s_id': 's563337971', 'p_id': 'p02237', 'u_id': 'u881737484', 'date': '1579766159', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '491'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nstatic const int N = 100;\n\nint main(){\n \n int M[N][N];\n int n, u, k, v;\n \n \n scanf(\"%d\",&n);\n ... |
CDSS_302483 | CDSS | #include<stdio.h>
int main()
{
int x,y,z;
for(;scanf("%d %d",&x,&y);)
{
if(x==0 && y==0)
break;
else if(x>y)
{ z=x;
x=y;
y=z;
}
printf("%d %d\n",x,y);
}
return 0;
}
| 1,996 | memory_bytes | {'s_id': 's226787693', 'p_id': 'p02397', 'u_id': 'u011621222', 'date': '1518545962', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1996', 'code_size': '268'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int x,y,z;\n \n for(;scanf(\"%d %d\",&x,&y);)\n {\n if(x==0 && y==0)\n ... |
CDSS_142217 | CDSS | #include<stdio.h>
#define N 8
#define E -1
#define NE 1
int R[N],C[N],dpos[2*N-1],dneg[2*N-1];
int x[N][N];
void init();
void print();
void recur(int);
int main(){
int i,j,n,r,c;
init();
for(i=0;i<N;i++){
for(j=0;j<N;j++) x[i][j] = 0;
}
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&r);
... | 2,104 | memory_bytes | {'s_id': 's586994476', 'p_id': 'p02244', 'u_id': 'u915088497', 'date': '1549341331', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1107'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n\n#define N 8\n#define E -1\n#define NE 1\n\nint R[N],C[N],dpos[2*N-1],dneg[2*N-1];\n\nint x[N][N];\nvoid init(... |
CDSS_570838 | CDSS | #include <stdio.h>
int main()
{
int n, k;
char s[50];
scanf("%d%d", &n, &k);
scanf("%s", s);
if (s[k - 1] == 'A')
s[k - 1] = 'a';
else if (s[k - 1] == 'B')
s[k - 1] = 'b';
else
s[k - 1] = 'c';
printf("%s",s);
return 0;
} | 128 | memory_bytes | {'s_id': 's164471353', 'p_id': 'p03041', 'u_id': 'u670925964', 'date': '1558315479', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '280'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int n, k;\n char s[50];\n scanf(\"%d%d\", &n, &k);\n scanf(\"%s\", s);\n if (s[k ... |
CDSS_307132 | CDSS | #include<stdio.h>
int main()
{
int a,b,c,d;
scanf("%d %d %d",&a,&b,&c);
for(int i=a;i<=b;i++){
if(c%i==0){
d++;
}
}
printf("%d\n",d);
return 0;
}
| 2,112 | memory_bytes | {'s_id': 's004447461', 'p_id': 'p02398', 'u_id': 'u170079929', 'date': '1593848162', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '146'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint a,b,c,d;\nscanf(\"%d %d %d\",&a,&b,&c);\nfor(int i=a;i<=b;i++){\nif(c%i==0){\nd++;\n}\n}\nprin... |
CDSS_463533 | CDSS | #include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int tmp = a;
a = b;
b = tmp;
tmp = a;
a = c;
c = tmp;
printf("%d %d %d\n",a,b,c);
return 0;
}
| 128 | memory_bytes | {'s_id': 's794293624', 'p_id': 'p02717', 'u_id': 'u909323623', 'date': '1586048986', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '179'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint a,b,c;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tint tmp = a;\n\ta = b;\n\tb = tmp;\n\ttmp = ... |
CDSS_404194 | CDSS | #include<stdio.h>
#include<stdlib.h>
typedef long long ll;
int max(int a, int b){
if(a > b) return a;
else return b;
}
int min(int a, int b){
if(a < b) return a;
else return b;
}
int sort(const void *a ,const void *b){
return *(int*)a - *(int*)b;
}
int main(){
int x,n;
scanf("%d%d",&x,&n);
if(n =... | 1,732 | memory_bytes | {'s_id': 's637412894', 'p_id': 'p02641', 'u_id': 'u759675243', 'date': '1592184651', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1732', 'code_size': '840'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\ntypedef long long ll;\n\nint max(int a, int b){\n if(a > b) return a;\n else return b;\n}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.