identifier string | space string | input string | target float64 | metric_type string | metadata string | messages list |
|---|---|---|---|---|---|---|
CDSS_100422 | CDSS | #include<stdio.h>
#define N 10000
int main(void){
int i,num,j,k;
int a,b;
int n;
int x,y;
int map[20][20];
int ams[N];
for(i=0;;i++){
scanf("%d%d",&a,&b);
if(a==0 && b==0)
break;
for(j=0;j<=a;j++)
map[0][j]=0;
for(j=0;j<=b;j++)
map[j][0]=0;
for(j=0;j<b;j++)
f... | 0 | memory_bytes | {'s_id': 's316454434', 'p_id': 'p00438', 'u_id': 'u846661244', 'date': '1323863773', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '790'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 10000\n\nint main(void){\n int i,num,j,k;\n int a,b;\n int n;\n int x,y;\n int map[20][20];\n int a... |
CDSS_54294 | CDSS | #include <stdio.h>
#include <math.h>
int main(void)
{
float x[4], y[4];
float slope1, slope2;
int n;
int i;
scanf("%d", &n);
while (n-- > 0){
for (i = 0; i < 4; i++){
scanf("%f %f", &x[i], &y[i]);
}
slope1 = (y[1] - y[0]) / (x[1] - x[0]);
slope2 = (y... | 616 | memory_bytes | {'s_id': 's606062126', 'p_id': 'p00021', 'u_id': 'u376883550', 'date': '1456276789', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '496'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n float x[4], y[4];\n float slope1, slope2;\n int n;\n int i;\n... |
CDSS_502091 | CDSS | #include<stdio.h>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
if(500*a>=b)
printf("Yes");
else printf("No");
return 0;
} | 128 | memory_bytes | {'s_id': 's124522466', 'p_id': 'p02811', 'u_id': 'u282054078', 'date': '1578712008', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '147'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,b;\n scanf(\"%d%d\",&a,&b);\n if(500*a>=b)\n printf(\"Yes\");\n else print... |
CDSS_104805 | CDSS | s;main(t){for(;~scanf("%d",&t);s+=t);printf("%d\n%d\n",s/60,s%60);exit(0);} | 0 | memory_bytes | {'s_id': 's422338849', 'p_id': 'p00477', 'u_id': 'u756656224', 'date': '1297601077', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '75'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ns;main(t){for(;~scanf(\"%d\",&t);s+=t);printf(\"%d\\n%d\\n\",s/60,s%60);exit(0);}\nPredict its memory footprint.",
"role": "user"
... |
CDSS_288291 | CDSS | main () {
int a, b, c;
scanf("%d %d %d",&a, &b, &c);
if (a <= b && b <= c) printf("%d %d %d\n", a, b, c);
else if (a <= c && c <= b) printf("%d %d %d\n", a, c, b);
else if (b <= a && a <= c) printf("%d %d %d\n", b, a, c);
else if (b <= c && c <= a) printf("%d %d %d\n", b, c, a);
else if (c <... | 2,112 | memory_bytes | {'s_id': 's331916756', 'p_id': 'p02393', 'u_id': 'u669666436', 'date': '1563971157', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '430'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain () {\n int a, b, c;\n scanf(\"%d %d %d\",&a, &b, &c);\n if (a <= b && b <= c) printf(\"%d %d %d\\n\", a, b, c);\n els... |
CDSS_498665 | CDSS | #include <stdio.h>
#include <math.h>
typedef long long ll;
int fastDigit(int n){
if(n <= 9) return n;
else fastDigit(n / 10);
}
int lastDigit(int n){
return n % 10;
}
int getDigitCount(int n){
if(n <= 9) return 1;
else return getDigitCount(n / 10) * 10;
}
void push(int *p, int n){
int i;
for(i=0;p[i]!... | 128 | memory_bytes | {'s_id': 's920275485', 'p_id': 'p02792', 'u_id': 'u091870478', 'date': '1587656250', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '915'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\ntypedef long long ll;\n\nint fastDigit(int n){\n if(n <= 9) return n;\n else fastDigit(n / 10... |
CDSS_622633 | CDSS | #include <stdio.h>
int main(int argc, char const *argv[]) {
char str[101];
int x1, x2, y1, y2;
int x3, x4, y3, y4;
fgets(str, 100, stdin);
sscanf(str, "%d %d %d %d\n", &x1, &y1, &x2, &y2);
int vx, vy;
vx = x2 - x1;
vy = y2 - y1;
x4 = x1 - vy;
y4 = y1 + vx;
x3 = x4 + vx;
y3 = y4 + vy;
printf("%d %d %d... | 128 | memory_bytes | {'s_id': 's893466828', 'p_id': 'p03265', 'u_id': 'u869153175', 'date': '1535851305', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '359'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char const *argv[]) {\n\tchar str[101];\n\tint x1, x2, y1, y2;\n\tint x3, x4, y3, y4;\n\n\tfg... |
CDSS_496748 | CDSS |
#include<stdio.h>
int main(){
int a,s;
scanf("%d%d",&a,&s);
if(a==s){printf("Yes\n");}else{printf("No\n");};
}
| 128 | memory_bytes | {'s_id': 's057873990', 'p_id': 'p02789', 'u_id': 'u089230684', 'date': '1581170437', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '125'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include<stdio.h>\nint main(){\nint a,s;\nscanf(\"%d%d\",&a,&s);\n\n\n if(a==s){printf(\"Yes\\n\");}else{printf(\"No\\n\");};\n\n... |
CDSS_674183 | CDSS | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
int main()
{
char n[10];
scanf("%s", n);
int lenn = strlen(n);
int sum = 0;
for (int i=0; i<lenn; i++)
{
sum += n[i] - '0';
}
if (atoi(n) % sum == 0) printf("Yes\n");
else print... | 128 | memory_bytes | {'s_id': 's905110040', 'p_id': 'p03502', 'u_id': 'u214304095', 'date': '1541129344', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '347'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <math.h>\n\nint main()\n{\n char n[10]... |
CDSS_600864 | CDSS | #include<stdio.h>
int nextInt();
int N, H[100], ans, h, i;
char f;
int main(){
N=nextInt();
for(i=0; i<N; i++){
H[i]=nextInt();
}
for(h=100; h>=1; h--){
f=0;
for(i=0; i<N; i++){
if(H[i]==h){
if(!f){ans++;}
f=1;
H[i]--;
}else{
f=0;
}
}
}
printf("%d\n", ans);
return 0;
}
int ne... | 128 | memory_bytes | {'s_id': 's269019546', 'p_id': 'p03147', 'u_id': 'u292252214', 'date': '1548016004', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '466'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint nextInt();\n\nint N, H[100], ans, h, i;\nchar f;\n\nint main(){\n\tN=nextInt();\n\tfor(i=0; i<N; i++){\n\t\tH... |
CDSS_210843 | CDSS | #include<stdio.h>
int A[100000];
int main()
{
int i,j,n,m;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&A[i]);
}
m=partition(0,n-1);
for(i=0;i<n;i++)
{
if(i!=0)
{
printf(" ");
}
if(i==m)
{
printf("[");
}
printf("%... | 2,172 | memory_bytes | {'s_id': 's057685380', 'p_id': 'p02276', 'u_id': 'u987115153', 'date': '1545964537', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2172', 'code_size': '733'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint A[100000];\n\nint main()\n{\n int i,j,n,m;\n \n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n {\n scanf(... |
CDSS_680326 | CDSS | #pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define i_cin(X) scanf("%d", &X)
#define i_cin2(X,Y) scanf("%d %d",&X,&Y)
#define i_cin3(X,Y,Z) scanf("%d %d %d",&X,&Y,&Z)
#define l_cin(X) scanf("%ld",&X)
#define s_cin(X) scanf("%s",&X)
#define i_cout(X) pr... | 128 | memory_bytes | {'s_id': 's580061558', 'p_id': 'p03564', 'u_id': 'u918599282', 'date': '1586311815', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '683'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#pragma warning(disable:4996)\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\n#define i_cin(X) s... |
CDSS_519575 | CDSS | #include <stdio.h>
int main(void) {
unsigned long long n, i, d;
scanf("%llu", &n);
d=n-1;
for(i=1; i*i<=n; ++i){
if(n%i==0){
unsigned long long d0 = (i-1)+(n/i-1);
if(d0 < d) d = d0;
}
}
printf("%llu\n", d);
return 0;
}
| 128 | memory_bytes | {'s_id': 's972506375', 'p_id': 'p02881', 'u_id': 'u009041760', 'date': '1573841797', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '128', 'code_size': '240'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tunsigned long long n, i, d;\n\t\n\tscanf(\"%llu\", &n);\n\td=n-1;\n\tfor(i=1; i*i<=n; ++i){\... |
CDSS_415966 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
char S[105];
int i,length=0,k;
scanf("%d",&k);
scanf("%s",&S);
for(i=0;S[i]!='\0';i++)
{
length++;
}
if((length==k)||(length<k))
{
printf("%s\n",S);
}
if(length>k)
{
for(i=0;i<k... | 2,088 | memory_bytes | {'s_id': 's289359537', 'p_id': 'p02676', 'u_id': 'u107523243', 'date': '1589769066', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '2088', 'code_size': '424'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must 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[105];\n int i,length=0,k;\n\n scanf(\"%d\",&k);\n scanf(\"%s... |
CDSS_423930 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#defin... | 1,732 | memory_bytes | {'s_id': 's683006076', 'p_id': 'p02688', 'u_id': 'u004279520', 'date': '1588554281', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '2729'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\n#include<assert.h>\ntypedef long lon... |
CDSS_394757 | CDSS | #include <stdio.h>
int main(void){
int a;
scanf("%d", &a);
if(1 <=a <= 10){
printf("%d\n", a+a*a+a*a*a);
}else {
printf("%s\n", "Error!");
}
}
| 1,724 | memory_bytes | {'s_id': 's234003225', 'p_id': 'p02621', 'u_id': 'u133485758', 'date': '1594308722', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1724', 'code_size': '158'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must 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 scanf(\"%d\", &a);\n if(1 <=a <= 10){\n printf(\"%d\\n\", a+a*a+a*a*a);\n }else ... |
CDSS_166024 | CDSS | #include<stdio.h>
#define N 100
int main (){
int flag,i,j,A[N],count=0,n,x;
scanf("%d",&n);
for(i=0;i<n;i++) scanf("%d",&A[i]);
flag = 1;
i = 0;
while(flag!=0){
flag=0;
for(j=n-1;j>=i+1;j--){
if(A[j]<A[j-1]){
x=A[j];
A[j]=A[j-1];
A[j-1]=x;
flag=1;
count++;
}
}
... | 600 | memory_bytes | {'s_id': 's340872334', 'p_id': 'p02259', 'u_id': 'u409954594', 'date': '1492147103', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '459'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\nint main (){\n int flag,i,j,A[N],count=0,n,x;\n\n scanf(\"%d\",&n);\n for(i=0;i<n;i++) scanf(\"%d... |
CDSS_138129 | CDSS |
#include<stdio.h>
#define N 100000000
int A[101][101];
int P[101];
int n;
void tl(int s,int c){
int i;
for(i=0;i<n;i++){
if(A[s][i+1]==1 && P[i+1] > c){
P[i+1] = c;
tl(i+1,c+1);
}
}
}
int main(){
int i,j;
int u,k,v;
for(i=0;i<100;i++){
P[i+1] = N;
}
scanf("%d",&n);
for(i=0... | 2,036 | memory_bytes | {'s_id': 's310229689', 'p_id': 'p02239', 'u_id': 'u248883632', 'date': '1580801897', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '592'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n\n#include<stdio.h>\n\n#define N 100000000\n\n\nint A[101][101];\nint P[101];\nint n;\nvoid tl(int s,int c){\n int i;\n for(i=0;i<... |
CDSS_528039 | CDSS | #include<stdio.h>
#define NAMELEN 128
#define NO 0
#define YES 1
int cmp(char S[]){
int i;
for(i=0;S[i]!='\0';i++){
if(i%2==1)
if(S[i]=='R')
return NO;
if(i%2==0)
if(S[i]=='L')
return NO;
}
return YES;
}
int main(void){
char S[NAMELEN];
scanf("%s",S);
if(cmp(S)==NO)
p... | 1,660 | memory_bytes | {'s_id': 's829627695', 'p_id': 'p02910', 'u_id': 'u725680599', 'date': '1595801571', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1660', 'code_size': '384'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define NAMELEN 128\n#define NO 0\n#define YES 1\n\n\nint cmp(char S[]){\n int i;\n for(i=0;S[i]!='\\0';i++){\n ... |
CDSS_518585 | CDSS | #include <stdio.h>
#include <stdlib.h>
int main (void) {
int n;
int i;
scanf("%d", &n);
for ( i=1; i<=9; i++ ) {
if ( n%i == 0 && n/i <= 9 ) {
printf("Yes\n");
return EXIT_SUCCESS;
}
}
printf("No\n");
return EXIT_SUCCESS;
}
| 128 | memory_bytes | {'s_id': 's435742406', 'p_id': 'p02880', 'u_id': 'u263564761', 'date': '1582119482', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '294'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main (void) {\n int n;\n int i;\n scanf(\"%d\", &n);\n\n for ( i=1; i<=9; i... |
CDSS_350324 | CDSS | #include <stdio.h>
int main(void){
int a[3][10][4] = { {0} };
int i, j, k;
int n;
int b, f, r, v;
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%d%d%d%d", &b, &f, &r, &v);
a[f-1][r-1][b-1] += v;
}
for(k=0; k<4; k++){
for(i=0; i<3; i++){
for(j=0; j<10; j++){
if(a[i][j][k] == 0){
printf(" 0");
}else{
... | 2,112 | memory_bytes | {'s_id': 's590081855', 'p_id': 'p02409', 'u_id': 'u473018876', 'date': '1533632472', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '446'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a[3][10][4] = { {0} };\n int i, j, k;\n int n;\n int b, f, r, v; \n \n scanf(\"%d\", &n);\... |
CDSS_566774 | CDSS | #include<stdio.h>
int main()
{
int a,p;
scanf("%d%d",&a,&p);
printf("%d",(a*3+p)/2);
} | 128 | memory_bytes | {'s_id': 's615624357', 'p_id': 'p03029', 'u_id': 'u914762730', 'date': '1558995429', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '98'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,p;\n scanf(\"%d%d\",&a,&p);\n printf(\"%d\",(a*3+p)/2);\n}\nPredict its memory footp... |
CDSS_65934 | CDSS | #include<stdio.h>
int main(void){
int n,tmp;
int ans;
while(1){
scanf("%d",&n);
if(!n)break;
ans = 0;
tmp = 5;
while(tmp <= n){
ans += n/tmp;
tmp *= 5;
}
printf("%d\n",ans);
}
return 0;
} | 0 | memory_bytes | {'s_id': 's806080111', 'p_id': 'p00052', 'u_id': 'u914140574', 'date': '1293519191', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '242'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int n,tmp;\n int ans;\n\n while(1){\n scanf(\"%d\",&n);\n if(!n)break;\n\n ans = 0;... |
CDSS_118923 | CDSS | #include<stdio.h>
#define B 1
#define W 2
short d[] = {0,1,-1};
int n,m,p;
short G[7*7*7+1][8][8];
int check(int x,int y,int z)
{
short i,j,k,dx,dy,dz,c,cnt,nx,ny,nz;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
for(k=0;k<3;k++)
{
if(i+j+k == 0)
continue;
dx = d[k],dy = d[j],dz = d[i]... | 652 | memory_bytes | {'s_id': 's687079356', 'p_id': 'p00828', 'u_id': 'u116766943', 'date': '1363452499', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '652', 'code_size': '1384'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define B 1\n#define W 2\n\nshort d[] = {0,1,-1};\nint n,m,p;\nshort G[7*7*7+1][8][8];\n\nint check(int x,int y,int... |
CDSS_658460 | CDSS |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <float.h>
#pragma region 定義
typedef long long ll;
typedef unsigned long long ull;
#define _itoa(A,N) sprintf(A, "%d", N);
int i_dsort(const void* a, const void* b);
int i... | 1,712 | memory_bytes | {'s_id': 's037273883', 'p_id': 'p03434', 'u_id': 'u918599282', 'date': '1594304984', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1712', 'code_size': '3748'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#pragma warning(disable:4996)\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#define _USE_MATH_DEFINES\n#include <... |
CDSS_59411 | CDSS | //2:14 start
//2:37 writing done
//2:44 passed test case
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//#define DEBUG
#define MAX_LEN 32
#define MAX_N_WORDS 1000
void word_lower(char* word)
{
int i,len;
len=strlen(word);
for(i=0;i<len;i++){
word[i]=tolower(word[i]);
}
}
typede... | 0 | memory_bytes | {'s_id': 's592860663', 'p_id': 'p00029', 'u_id': 'u980371011', 'date': '1341683053', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1593'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//2:14 start\n//2:37 writing done\n//2:44 passed test case\n\n\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n//#def... |
CDSS_369061 | CDSS | #include <stdio.h>
#include <ctype.h>
#include <string.h>
int main(void) {
char str[1001], w[11];
int ans;
int i;
scanf("%s", w);
for (i = 0; str[i] != '\0'; i++) str[i] = tolower(str[i]);
ans = 0;
while (scanf("%s", str), strcmp(str, "END_OF_TEXT")) {
for (i = 0; str[i] != '\0'; i++) str[i] = tolower(s... | 552 | memory_bytes | {'s_id': 's991380098', 'p_id': 'p02419', 'u_id': 'u933965697', 'date': '1481204837', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '552', 'code_size': '404'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <ctype.h>\n#include <string.h>\n\nint main(void) {\n\tchar str[1001], w[11];\n\tint ans;\n\tint i;\n\t\n\... |
CDSS_64259 | CDSS | float x,n=1e9,t;main(){for(;~scanf("%f",&t)?x<t?x=t:1:!printf("%f\n",x-n);t<n?n=t:0);} | 644 | memory_bytes | {'s_id': 's816553276', 'p_id': 'p00046', 'u_id': 'u340315059', 'date': '1377378645', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', 'code_size': '86'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nfloat x,n=1e9,t;main(){for(;~scanf(\"%f\",&t)?x<t?x=t:1:!printf(\"%f\\n\",x-n);t<n?n=t:0);}\nPredict its memory footprint.",
"role... |
CDSS_655473 | CDSS | #include<stdio.h>
int main() {
long long int n, m;
long long int ans = 0;
scanf("%lld%lld", &n, &m);
if (m > 2 && n > 2)
{
ans = (m - 2)*(n - 2);
}
else if (m == 2 || n == 2)
{
ans = 0;
}
else if (m == 1 && n == 1)
{
ans = 1;
}
else if (m == 1)
{
ans = n - 2;
}
else if (n == 1)
{
ans = m - 2;... | 128 | memory_bytes | {'s_id': 's492691266', 'p_id': 'p03417', 'u_id': 'u857484987', 'date': '1520819185', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '358'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main() {\n\tlong long int n, m;\n\tlong long int ans = 0;\n\tscanf(\"%lld%lld\", &n, &m);\n\tif (m > 2 && n > 2... |
CDSS_303528 | CDSS | #include <stdio.h>
void swap(int* pInput1, int* pInput2)
{
int temp = *pInput1;
*pInput1 = *pInput2;
*pInput2 = temp;
}
int main()
{
int x,y;
while(1)
{
scanf("%d", &x);
scanf("%d", &y);
if((x==0)&&(y==0))
{
break;
}
else if(x>y)
... | 2,052 | memory_bytes | {'s_id': 's799521055', 'p_id': 'p02397', 'u_id': 'u937720191', 'date': '1586995542', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '415'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid swap(int* pInput1, int* pInput2)\n{\n\tint temp = *pInput1;\n\t*pInput1 = *pInput2;\n\t*pInput2 = temp;\n} ... |
CDSS_169712 | CDSS | #include <stdio.h>
main()
{
int a[100];
int n, i, j, k, minj, count=0;
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%d", &a[i]);
}
for(i=0; i<n-1; i++){
minj = i;
for(j=i; j<=n-1; j++){
if(a[j]<a[minj]){
minj = j;
}
}
if(minj != i){
k = a[i];
a[i] = a[minj];
a[minj] = k;
count+... | 604 | memory_bytes | {'s_id': 's495376958', 'p_id': 'p02260', 'u_id': 'u591586165', 'date': '1440130856', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '465'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nmain()\n{\n int a[100];\n int n, i, j, k, minj, count=0;\n\n scanf(\"%d\", &n);\n\n for(i=0; i<n; i++){\n\ts... |
CDSS_60639 | CDSS | #include <stdio.h>
int main(){
int len1, len2, len3, ccount = 0, hcount = 0, hoge, hogehoge;
while (scanf("%d%c%d%c%d", &len1, &hoge, &len2, &hogehoge, &len3) != EOF){
if (len1*len1 + len2*len2 == len3*len3) ccount++;
if (len1 == len2) hcount++;
}
printf("%d\n%d\n", ccount, hcount);
return 0;
} | 596 | memory_bytes | {'s_id': 's010768517', 'p_id': 'p00032', 'u_id': 'u709185111', 'date': '1390689987', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '305'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint len1, len2, len3, ccount = 0, hcount = 0, hoge, hogehoge;\n\twhile (scanf(\"%d%c%d%c%d\", &le... |
CDSS_368107 | CDSS | #include<stdio.h>
#include<string.h>
int main(){
char s[105];
char p[105];
scanf("%s%s",s,p);
//printf("%d",strlen(s));
for(int i=0;i<strlen(s);i++){
for(int j=0;s[(i+j)%strlen(s)]==p[j];j++){
if(j+1 == strlen(p)){
printf("Yes\n");
i=120;
break;
}
}
if(i+1==strlen(s)){
printf("No\n");
... | 2,096 | memory_bytes | {'s_id': 's803951728', 'p_id': 'p02418', 'u_id': 'u330494287', 'date': '1594599130', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '348'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n\tchar s[105];\n\tchar p[105];\n\tscanf(\"%s%s\",s,p);\n\t//printf(\"%d\",strlen(s... |
CDSS_679680 | CDSS | #include <stdio.h>
const char res[]="#%#$+$$%$$%$#+$%($%%'%+$$%%$%$$+$%%%$%$&+%$%$$%$$4$$%%$%$$+%$(#$%$$+$$%$$%$%+%$%$%($$+%$%$$%%&+%$%$%%%'+$$%%%(%$+%$($$()$+$$%$$%$%+$%%$'%$%+$%%'$%$$4$%($%%%$+%&%%$%$$+%$%&$%%$+$%%%$($$+%$%%$%$$+$%%&%($%+($($%%$$+$%(%$%$%+%$%$(%$$+$$%%%%&$+%%%$$%$%4%$%$$%$&+$$%$%%%$+'%%$$%$%+%&%$%(%... | 128 | memory_bytes | {'s_id': 's623155699', 'p_id': 'p03560', 'u_id': 'u352499693', 'date': '1511211874', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '50165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nconst char res[]=\"#%#$+$$%$$%$#+$%($%%'%+$$%%$%$$+$%%%$%$&+%$%$$%$$4$$%%$%$$+%$(#$%$$+$$%$$%$%+%$%$%($$+%$%$$%%... |
CDSS_463709 | CDSS | #include <stdio.h>
int main(void) {
int X, Y, Z;
scanf("%d%d%d", &X, &Y, &Z);
printf("%d %d %d", Z, X, Y);
return 0;
}
| 128 | memory_bytes | {'s_id': 's495363029', 'p_id': 'p02717', 'u_id': 'u279160680', 'date': '1586048513', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '136'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int X, Y, Z;\n scanf(\"%d%d%d\", &X, &Y, &Z);\n printf(\"%d %d %d\", Z, X, Y);\n ... |
CDSS_419158 | CDSS | #include<stdio.h>
int main(void){
char S[20];
char T[20];
int i,f;
f=1;
for(i=0;i<20;i++){
S[i]= 0;
T[i]= 0;
}
scanf("%s",&S);
scanf("%s",&T);
for(i=0;S[i]!=0;i++){
f=f*(S[i] == T[i]);
}
if(f)
printf("Yes");
else
{
prin... | 1,732 | memory_bytes | {'s_id': 's172375099', 'p_id': 'p02681', 'u_id': 'u923418829', 'date': '1589162380', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '358'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(void){\n char S[20];\n char T[20];\n int i,f;\n \n f=1;\n \n for(i=0;i<20;i++){\n S... |
CDSS_169852 | CDSS | #include <stdio.h>
int main(){
int A[100],i,j,minj,temp,N,count=0,n;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
for(i=0;i<N;i++){
minj=i;
for(j=i;j<N;j++){
if(A[j]<A[minj])minj=j;
}
temp=A[i];
A[i]=A[minj];
A[minj]=temp;
if(i!=minj) count++;
}
for(n=0;... | 600 | memory_bytes | {'s_id': 's170308181', 'p_id': 'p02260', 'u_id': 'u507320393', 'date': '1460612292', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '425'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int A[100],i,j,minj,temp,N,count=0,n;\n\n scanf(\"%d\",&N);\n for(i=0;i<N;i++){\n scanf(\"%d... |
CDSS_224009 | CDSS | #include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeSearch(Node u, int k){
while(u != NIL && k != u->key){
if(k < u->key) u = u->left;
else u = u->right;
}
ret... | 20,452 | memory_bytes | {'s_id': 's180437119', 'p_id': 'p02284', 'u_id': 'u749282054', 'date': '1547667609', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '280', 'memory': '20452', 'code_size': '1403'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int key;... |
CDSS_116146 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define INIT_CAP 10
#define INF 1000000000
#define min(a, b) (((a) < (b)) ? (a) : (b))
const int di[4] = {-1, 0, 1, 0};
const int dj[4] = {0, 1, 0, -1};
typedef struct {
int to, w;
} Edge;
typedef struct {
Edge *elem;
int cap, size;
} VecEdge;
typedef struct {
int num, d... | 1,036 | memory_bytes | {'s_id': 's995522074', 'p_id': 'p00737', 'u_id': 'u340315059', 'date': '1434471332', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1036', 'code_size': '2526'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\n#define INIT_CAP 10\n#define INF 1000000000\n\n#define min(a, b) (((a) < (b)) ? (a) : (b))\... |
CDSS_679186 | CDSS | #include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#define P 1000000007
int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int main(void){
int n, i;
int a[100000], b[100000], c[100000];
scanf("%d", &n);
for(i=0; ... | 1,788 | memory_bytes | {'s_id': 's973292879', 'p_id': 'p03557', 'u_id': 'u292252214', 'date': '1582857513', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '83', 'memory': '1788', 'code_size': '830'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <limits.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n#include ... |
CDSS_307549 | CDSS | #include<stdio.h>
int main(){
int a,b,c;
int i,co=0;
scanf("%d %d %d",&a,&b,&c);
for(i=1;i<=c;i++){
if(c%i==0 && a<=i && i<=b) co++;
}
printf("%d\n",co);
return 0;
}
| 2,140 | memory_bytes | {'s_id': 's189499823', 'p_id': 'p02398', 'u_id': 'u606639970', 'date': '1539336634', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '168'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint a,b,c;\nint i,co=0;\nscanf(\"%d %d %d\",&a,&b,&c);\n\nfor(i=1;i<=c;i++){\nif(c%i==0 && a<=i && i<=... |
CDSS_138275 | CDSS | #include<stdio.h>
int map[101][101];
int d[101];
int queue[101];
int n;
int main(){
int i, j;
int u, o, a;
scanf("%d", &n);
for( i = 1; i <= n; i++ ){
d[i] = -1;
for( j = 1; j <= n; j++ ){
map[i][j] = 0;
}
}
for( i = 1; i <= n; i++ ){
scanf("%d", &u)... | 2,096 | memory_bytes | {'s_id': 's606140036', 'p_id': 'p02239', 'u_id': 'u961694012', 'date': '1533823690', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '818'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint map[101][101];\nint d[101];\nint queue[101];\nint n;\n\nint main(){\n int i, j;\n int u, o, a;\n sca... |
CDSS_280801 | CDSS | #include <stdio.h>
int main(){
int x,y,z;
scanf("%d %d %d",&x,&y,&z);
if(x < y && y < z) {
printf("Yes\n");
} else {
printf("No\n");
} return 0;
}
| 2,100 | memory_bytes | {'s_id': 's354845249', 'p_id': 'p02392', 'u_id': 'u325767104', 'date': '1557197318', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '179'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int x,y,z;\n\n scanf(\"%d %d %d\",&x,&y,&z);\n\n if(x < y && y < z) {\n\n printf(\"Yes\\... |
CDSS_207181 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define MAX 2000001
#define VMAX 10000
int main(){
unsigned short *A, *B;
int C[VMAX+1];
int n, i, j;
scanf("%d", &n);
A = malloc(sizeof(short)*n+1);
B = malloc(sizeof(short)*n+1);
/* your code */
for(i=0; i<=VMAX; i++) C[i]=0;
for(i=0; i<n; i++){
... | 9,548 | memory_bytes | {'s_id': 's547093933', 'p_id': 'p02275', 'u_id': 'u331817668', 'date': '1545783383', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '9548', 'code_size': '569'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define MAX 2000001\n#define VMAX 10000\n\nint main(){\n unsigned short *A, *B;\n int C[VMA... |
CDSS_133473 | CDSS | #include <stdio.h>
#include <string.h>
int main(){
char x[1000],y[1000];
int n,i,j;
scanf("%d",&n);
for(i = 0;i < n;i++){
scanf("%s %s",x, y);
printf("%d\n",cal(x,y));
}
return 0;
}
int cal(char x[], char y[]){
int i,j;
int m = strlen(x);
int n = strlen(y);
int cou[m+1][n+1];
for(i = 0;i <... | 4,520 | memory_bytes | {'s_id': 's447117656', 'p_id': 'p02235', 'u_id': 'u091060200', 'date': '1502249568', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '4520', 'code_size': '651'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n int main(){\n char x[1000],y[1000];\n int n,i,j;\n scanf(\"%d\",&n);\n for(i = 0;i < n;i++){... |
CDSS_444825 | CDSS | #include <stdio.h>
int main()
{
int n, a[200010], a_[200010] = {0};
scanf("%d", &n);
for (int i = 1; i < n; i++)
scanf("%d", &a[i]);
for (int i = 0; i < n; i++)
{
a_[a[i] - 1]++;
}
for (int i = 0; i < n; i++)
{
printf("%d\n",a_[i]);
}
return 0;
} | 3,260 | memory_bytes | {'s_id': 's985873151', 'p_id': 'p02707', 'u_id': 'u395125142', 'date': '1592660013', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '45', 'memory': '3260', 'code_size': '314'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int n, a[200010], a_[200010] = {0};\n scanf(\"%d\", &n);\n for (int i = 1; i < n; i++)\... |
CDSS_41158 | CDSS | #include <stdio.h>
int main(void)
{
int a,b,c,d,ks,n,k;
while(scanf("%d",&n)!=EOF){
ks=0;
for(a=0;a<10;a++){
for(b=0;b<10;b++){
for(c=0;c<10;c++){
for(d=0;d<10;d++){
if(a+b+c+d==n)
ks++;
}
}
}
}
printf("%d\n",ks);
}
return 0;
} | 596 | memory_bytes | {'s_id': 's429277109', 'p_id': 'p00008', 'u_id': 'u351778155', 'date': '1504255904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '297'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\t#include <stdio.h>\n\t\n\tint main(void)\n\t{\n\t\tint a,b,c,d,ks,n,k;\n\t\twhile(scanf(\"%d\",&n)!=EOF){\n\t\tks=0;\n\t\t\tfor(a=0;... |
CDSS_120648 | CDSS | // AOJ 1618: A Garden with Ponds
// 2017.12.25 bal4u@uu
#include <stdio.h>
#define MAX 9
int map[10][10];
int max[10][10][10][10];
int cap[10][10][10][10];
int main()
{
int d, w, r, c, m, s, ans;
int d1, w1, r1, c1, r2, c2;
while (scanf("%d%d", &d, &w) && d > 0) {
d1 = d-1, w1 = w-1;
for (r= 0; r < d; r++) ... | 1,780 | memory_bytes | {'s_id': 's704341281', 'p_id': 'p01103', 'u_id': 'u847467233', 'date': '1514157492', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1780', 'code_size': '1485'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 1618: A Garden with Ponds\n// 2017.12.25 bal4u@uu\n\n#include <stdio.h>\n\n#define MAX 9\n\nint map[10][10];\nint max[10][10][1... |
CDSS_702654 | CDSS | #include <stdio.h>
int main(void){
int A,B;
scanf("%d%d",&A,&B);
if(A+B >= 10) printf("error\n");
else printf("%d\n",A+B);
return 0;
} | 128 | memory_bytes | {'s_id': 's002757428', 'p_id': 'p03697', 'u_id': 'u812973725', 'date': '1550095492', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '147'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int A,B;\n scanf(\"%d%d\",&A,&B);\n\n if(A+B >= 10) printf(\"error\\n\");\n else printf(\"... |
CDSS_303285 | CDSS | #include <stdio.h>
main(){
int x=0,y=0;
while(1){
scanf("%d %d",&x,&y);
if(x==0&&y==0)break;
if(x>y){
printf("%d %d\n",y,x);
}else{
printf("%d %d\n",x,y);
}
}
return 0;
} | 600 | memory_bytes | {'s_id': 's555605525', 'p_id': 'p02397', 'u_id': 'u767097050', 'date': '1373136339', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '191'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nmain(){\n\tint x=0,y=0;\n\twhile(1){\n\t\tscanf(\"%d %d\",&x,&y);\n\t\tif(x==0&&y==0)break;\n\t\tif(x>y){\n\t\t\... |
CDSS_680714 | CDSS | #include<stdio.h>
int main(){
char sd[100] = {};int sdcnt = 0;
char t[100] = {};int tcnt = 0;
int i = 0;
int j = 0;
int success = 0;
int li = 0;
int ok = 0;
scanf(" %s",sd);
scanf(" %s",t);
for(i=0;i < 100;i++){
if(sd[i] == '\0'){
sdcnt = i;
break;
}
}
for(i=0;i < 100;i++){
... | 128 | memory_bytes | {'s_id': 's127487164', 'p_id': 'p03565', 'u_id': 'u185050799', 'date': '1574899451', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '946'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n char sd[100] = {};int sdcnt = 0;\n char t[100] = {};int tcnt = 0;\n int i = 0;\n int j = 0;\n ... |
CDSS_711001 | CDSS | #include<stdio.h>
#include<string.h>
char a[105], b[105];
int main(void) {
int i;
int lena, lenb;
scanf("%s", a);
scanf("%s", b);
lena = strlen(a);
lenb = strlen(b);
if (lena > lenb) {
printf("GREATER\n");
return 0;
}
else if (lena < lenb) {
printf("LESS\n");
return 0;
}
else
{
for (i = 0;... | 128 | memory_bytes | {'s_id': 's558197413', 'p_id': 'p03738', 'u_id': 'u833298276', 'date': '1537824975', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '518'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nchar a[105], b[105];\n\n\nint main(void) {\n\n\tint i;\n\n\tint lena, lenb;\n\n\tscanf(\"%s\"... |
CDSS_468281 | CDSS | #include<stdio.h>
int main(void){
char s[10];
scanf("%s", s);
if(s[2]==s[3]&&s[4]==s[5]){
printf("Yes");
}
else{
printf("No");
}
return 0;
} | 128 | memory_bytes | {'s_id': 's515122420', 'p_id': 'p02723', 'u_id': 'u206307185', 'date': '1589825558', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n char s[10];\n \n scanf(\"%s\", s);\n if(s[2]==s[3]&&s[4]==s[5]){\n printf(\"Yes\");\n }\n... |
CDSS_306491 | CDSS | #include<stdio.h>
int main(void)
{
int a,b,c,i=0;
scanf("%d %d %d\n",&a,&b,&c);
for(a;a<=b;a++){
if(c%a==0)
i++;
}
printf("%d\n",i);
} | 1,816 | memory_bytes | {'s_id': 's449916981', 'p_id': 'p02398', 'u_id': 'u192556925', 'date': '1512711369', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1816', 'code_size': '145'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b,c,i=0;\n\n\tscanf(\"%d %d %d\\n\",&a,&b,&c);\n\tfor(a;a<=b;a++){\n\t\tif(c%a==0)\n\t\t... |
CDSS_48023 | CDSS | #include<stdio.h>
int main() {
int N;
int ans;
while (1) {
if (scanf("%d", &N) == EOF)break;
ans = 0;
for (int i = 1; i < 600 / N; i++) {
ans += i * N*i*N*N;
}
printf("%d\n", ans);
}
return 0;
}
| 2,028 | memory_bytes | {'s_id': 's460197493', 'p_id': 'p00014', 'u_id': 'u331071112', 'date': '1527784171', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', 'code_size': '217'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() {\n\tint N;\n\tint ans;\n\n\twhile (1) {\n\t\tif (scanf(\"%d\", &N) == EOF)break;\n\t\tans = 0;\n\t\tf... |
CDSS_90847 | CDSS | #include <stdio.h>
int main(){
int r,s,rs;
scanf("%d%d%d",&r,&s,&rs);
if(r==1&&s==0&&rs==0){
printf("Close\n");
}
else if(r==0&&s==1&&rs==0){
printf("Close\n");
}
else if(r==1&&s==1&&rs==0){
printf("Open\n");
}
else if(r==0&&s==0&&rs==1){
printf("Open\n");
}
else if(r==0&&s==0&... | 584 | memory_bytes | {'s_id': 's116842545', 'p_id': 'p00252', 'u_id': 'u084540620', 'date': '1431511072', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '369'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int r,s,rs;\n scanf(\"%d%d%d\",&r,&s,&rs);\n if(r==1&&s==0&&rs==0){\n printf(\"Close\\n\");\n ... |
CDSS_210166 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define MAX 2000001
#define VMAX 10000
int main()
{
unsigned short *A,*B;
int n,C[VMAX+1],i,j;
scanf("%d",&n);
A = malloc(sizeof(short)*n+1);
B = malloc(sizeof(short)*n+1);
for(i=0;i<=VMAX;i++)
{
C[i]=0;
}
for(i=0;i<n;i++)
{
scanf("%hu",&A[i+1]);
C[... | 9,620 | memory_bytes | {'s_id': 's272021882', 'p_id': 'p02275', 'u_id': 'u569815091', 'date': '1548931038', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '9620', 'code_size': '568'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define MAX 2000001\n#define VMAX 10000\nint main()\n{\n unsigned short *A,*B;\n int n,C[VM... |
CDSS_113589 | CDSS | #include<stdio.h>
int main(void){
int f[1000001],n,a,b,i,j,t,ans;
while(1){
scanf("%d %d %d",&n,&a,&b);
if(n==0&&a==0&&b==0){
break;
}
for(i=1;i<=n;i++){
f[i]=0;
}
f[0]=1;
ans=0;
for(i=1;i<=n;i++){
if(i-a>=0&&f[i-a]==1){
f[i]=1;
}
if(i-b>=0&&f[i-b]==1){
f[i]=1;
}
if(f[i]!=... | 4,508 | memory_bytes | {'s_id': 's109860322', 'p_id': 'p00687', 'u_id': 'u003762655', 'date': '1445251416', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '4508', 'code_size': '370'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint f[1000001],n,a,b,i,j,t,ans;\n\twhile(1){\n\t\tscanf(\"%d %d %d\",&n,&a,&b);\n\t\tif(n==0&&a=... |
CDSS_90762 | CDSS | #include <stdio.h>
int main(){
int i ,point ,total=0;
for( i=0 ; i<10 ; i++ ){
scanf( "%d" ,&point );
total = total + point;
}
printf( "%d\n" ,total );
return 0;
} | 600 | memory_bytes | {'s_id': 's014722655', 'p_id': 'p00251', 'u_id': 'u656649654', 'date': '1377825726', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '181'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int i ,point ,total=0;\n for( i=0 ; i<10 ; i++ ){\n scanf( \"%d\" ,&point );\n total = total... |
CDSS_533972 | CDSS | #include<stdio.h>
#include<string.h>
int main() {
long N;
long H[100000];
long cnt = 0;
long maxcnt = 0;
scanf("%d", &N);
for (long i = 0; i < N; i++) {
scanf("%ld", &H[i]);
}
for (long i = 0; i < N - 1; i++) {
if (H[i] >= H[i + 1]) {
cnt = cnt + 1;
if (maxcnt < cnt) {
maxcnt = cnt;
... | 896 | memory_bytes | {'s_id': 's125109890', 'p_id': 'p02923', 'u_id': 'u225510395', 'date': '1577397084', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '896', 'code_size': '394'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main() {\n\t\n\tlong N;\n\tlong H[100000];\n\tlong cnt = 0;\n\tlong maxcnt = 0;\n\n\tscan... |
CDSS_220191 | CDSS | #include<stdio.h>
#define MAX 10000
#define NIL -1
struct Node {int q,m,r;};
struct Node T[MAX];
int n;
void pre(int u){
if( u == NIL) return;
printf(" %d", u);
pre(T[u].m);
pre(T[u].r);
}
void in(int u){
if(u == NIL) return;
in(T[u].m);
printf(" %d", u);
in(T[u].r);
}
void post(int u){
if(u == NI... | 2,068 | memory_bytes | {'s_id': 's330536475', 'p_id': 'p02281', 'u_id': 'u035883600', 'date': '1578300715', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '875'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 10000\n#define NIL -1\n\nstruct Node {int q,m,r;};\nstruct Node T[MAX];\nint n;\n\nvoid pre(int u){\n ... |
CDSS_652902 | CDSS | #include "stdio.h"
#include "math.h"
int N;
int main(int argc, char* argv[])
{
int i;
int a[100002];
int a_sum=0;
scanf("%d", &N);
a[0] = 0;
a[N+1] = 0;
for(i=0;i<N;i++){
scanf("%d", &a[i+1]);
a_sum += abs(a[i+1]-a[i]);
}
a_sum += abs(a[i+1]-a[i]);
for(i=0;i<N;i++){
printf("%d\n", a_sum - abs(a[i+1... | 1,536 | memory_bytes | {'s_id': 's520654000', 'p_id': 'p03401', 'u_id': 'u025551571', 'date': '1523676471', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1536', 'code_size': '396'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include \"stdio.h\"\n#include \"math.h\"\n\nint N;\n\nint main(int argc, char* argv[])\n{\n\tint i;\n\tint a[100002];\n\tint a_sum=0;... |
CDSS_502373 | CDSS | #include<stdio.h>
#include<string.h>
int main() {
int N;
char S[N];
int count = 0;
scanf("%d", &N);
scanf("%s", S);
for(int i = 0; i < N; i++) {
if(S[i] =='A') {
if(S[i+1] == 'B') {
if(S[i+2] == 'C') {
count++;
}
}
}
}
printf... | 1,744 | memory_bytes | {'s_id': 's440072339', 'p_id': 'p02812', 'u_id': 'u159322926', 'date': '1597614751', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1744', 'code_size': '350'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main() {\n int N;\n char S[N];\n int count = 0;\n\n scanf(\"%d\", &N);\n scanf(... |
CDSS_204045 | CDSS | #include <stdio.h>
#define N 500000
void Merge(int,int,int);
void Merge_Sort(int,int);
int S[N],c=0;
main(){
int i,n;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&S[i]);
}
Merge_Sort(0,n);
for(i=0;i<n;i++){
printf("%d",S[i]);
if(i<n-1)printf(" ");
}
printf("\n%d\n",c);
return 0;
}
... | 4,508 | memory_bytes | {'s_id': 's618208320', 'p_id': 'p02272', 'u_id': 'u022028544', 'date': '1400199955', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '160', 'memory': '4508', 'code_size': '892'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 500000\n\nvoid Merge(int,int,int);\nvoid Merge_Sort(int,int);\n\nint S[N],c=0;\nmain(){\n int i,n;\n ... |
CDSS_137063 | CDSS | #include<stdio.h>
#define N 101
#define WHITE 0
#define BLACK 1
#define GRAY 2
typedef struct
{
int d,f,k,color;
}Depth;
int B[N][N],n,cnt=0;
Depth D[N];
void DFS(int);
void Print();
int main()
{
int i,j,u,v;
scanf("%d",&n);
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)B[i][j] = 0;
}
for(i=0;i<n;i++)
{... | 2,108 | memory_bytes | {'s_id': 's495251963', 'p_id': 'p02238', 'u_id': 'u006036653', 'date': '1580309540', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '871'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 101\n#define WHITE 0\n#define BLACK 1\n#define GRAY 2\n\ntypedef struct\n{\n int d,f,k,color;\n}Depth;\... |
CDSS_658987 | CDSS | #include <stdio.h>
int main(){
int c[4][4];
int d[4][4];
int i,j;
for(i=0;i<3;i++)
for(j=0;j<3;j++)
scanf("%d",&c[i][j]);
for(i=0;i<3;i++)
for(j=0;j<2;j++)
d[i][j]=c[i][j+1]-c[i][j];
if(d[0][0]==d[1][0] && d[0][1]==d[1][1] && d[1][0]==d[2][0] && d[1][1]==d[2][1])
printf("Yes\n");
... | 128 | memory_bytes | {'s_id': 's402818117', 'p_id': 'p03435', 'u_id': 'u347116006', 'date': '1591590750', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '361'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int c[4][4];\n int d[4][4];\n int i,j;\n for(i=0;i<3;i++)\n for(j=0;j<3;j++)\n scanf(\... |
CDSS_474938 | CDSS | #include "stdio.h"
void main(void){
long H,W;
scanf("%ld %ld",&H,&W);
if(H==1||W==1){
printf("1\n");
}
else if(H*W%2){
printf("%ld\n",H*W/2+1);
}
else
printf("%ld\n",H*W/2);
}
| 1,668 | memory_bytes | {'s_id': 's242410818', 'p_id': 'p02742', 'u_id': 'u517660694', 'date': '1595650341', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1668', 'code_size': '203'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include \"stdio.h\"\n\nvoid main(void){\n long H,W;\n scanf(\"%ld %ld\",&H,&W);\n if(H==1||W==1){\n printf(\"1\\n\");\n }\n e... |
CDSS_199839 | CDSS | #include<stdio.h>
#define N 2000
int i, n,q,A[N],mi[N];
int solve(int i, int m){
if(m == 0) return 1;
if(i >= n) return 0;
int res=solve(i+1,m)||solve(i+1,m-A[i]);
return res;
}
int main(){
scanf("%d", &n);
for(i = 0; i < n; i++){
scanf("%d", &A[i]);
}
scanf("%d", &q);
for(i = 0; i < q; i++)... | 584 | memory_bytes | {'s_id': 's150388132', 'p_id': 'p02271', 'u_id': 'u736567965', 'date': '1495076683', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1310', 'memory': '584', 'code_size': '479'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 2000\nint i, n,q,A[N],mi[N];\nint solve(int i, int m){\n if(m == 0) return 1;\n if(i >= n) return 0;\n ... |
CDSS_470434 | CDSS | #include <stdio.h>
#include <stdlib.h>
int compare_int(const void *a, const void *b)
{
return *(int*)a - *(int*)b;
}
int main(void)
{
int K, N;
int i;
int ans = 0;
int A[200000];
int dis[200000];
scanf("%d %d", &K, &N);
for (i = 0; i < N; i ++) {
scanf(" %d", &A[i]);
... | 2,556 | memory_bytes | {'s_id': 's284445015', 'p_id': 'p02725', 'u_id': 'u397337367', 'date': '1586653693', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '38', 'memory': '2556', 'code_size': '620'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint compare_int(const void *a, const void *b)\n{\n return *(int*)a - *(int*)b;\n}\n\nint... |
CDSS_603277 | CDSS | #include <stdio.h>
long long int w[100];
long long int v[100];
long long int dp[101][100003];
long long int max(long long int a, long long int b){
if(a<b)return b;
else return a;
}
int main(){
long long int n,W;
long long int i,j;
scanf("%lld %lld", &n, &W);
for(i=0;i<n;i++)scanf("%lld %lld", &w[i], &v[i]);... | 78,336 | memory_bytes | {'s_id': 's231144252', 'p_id': 'p03163', 'u_id': 'u685983477', 'date': '1590930757', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '78336', 'code_size': '509'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nlong long int w[100];\nlong long int v[100];\nlong long int dp[101][100003];\nlong long int max(long long int a, l... |
CDSS_186182 | CDSS | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct node{
unsigned int key;
struct node *n;
struct node *p;
};
typedef struct node * NodePointer;
NodePointer nil;
NodePointer listSearch(int key){
NodePointer cur=nil->n;
while(cur!=nil && cur->key!=key){
cur=cur->n;
}
return cur;
}
void... | 33,000 | memory_bytes | {'s_id': 's820596846', 'p_id': 'p02265', 'u_id': 'u954361174', 'date': '1581486781', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '33000', 'code_size': '1494'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nstruct node{\n unsigned int key;\n struct node *n;\n struct node *p;\n... |
CDSS_332383 | CDSS | #include<stdio.h>
int main(void)
{
int i,j,H,W,count=0;
while(1)
{
scanf("%d %d",&H,&W);
if(H==0&&W==0)
break;
for(i=0;i<H;i++)
{
for(j=0;j<W;j++)
printf("#");
printf("\n");
}
printf("\n");
}
return 0;
}
| 2,112 | memory_bytes | {'s_id': 's309873759', 'p_id': 'p02403', 'u_id': 'u840839224', 'date': '1586937650', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '266'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int i,j,H,W,count=0;\n while(1)\n {\n scanf(\"%d %d\",&H,&W);\n if(H==0&&W==0)\n ... |
CDSS_319569 | CDSS | #include <stdio.h>
#include <math.h>
int main(void){
int x,y,z;
char op;
while(1){
scanf("%d %c %d\n",&x,&op,&y);
if(op == '+'){
z = x + y;
}else if(op == '-'){
z = x - y;
}else if(op == '*'){
z = x * y;
}else if(op == '/'){
... | 1,792 | memory_bytes | {'s_id': 's834306105', 'p_id': 'p02401', 'u_id': 'u970551499', 'date': '1512779870', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1792', 'code_size': '438'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void){\n int x,y,z;\n char op;\n \n while(1){\n scanf(\"%d %c %d\... |
CDSS_419689 | CDSS | #include <stdio.h>
#include <string.h>
int main() {
char s[11], t[12];
scanf("%s\n%s", s, t);
for (int i = 0; s[i] != '\0'; i++)
{
if (s[i] != t[i])
{
printf("No\n");
return 0;
}
}
if (strlen(s) + 1 == strlen(t))
printf("Yes\n");
else
printf("No\n");
return 0;
} | 2,084 | memory_bytes | {'s_id': 's547973867', 'p_id': 'p02681', 'u_id': 'u020788337', 'date': '1589159243', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2084', 'code_size': '313'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main() {\n char s[11], t[12];\n scanf(\"%s\\n%s\", s, t);\n for (int i = 0; s[i] != ... |
CDSS_548308 | CDSS | #include <stdio.h>
#include <stdlib.h>
int int_compare(const int* a, const int* b)
{
if (*a < *b) {
return 1;
}
if (*a > *b) {
return -1;
}
return 0;
}
int main(void)
{
int n;
scanf("%d", &n);
int a[n];
for (int i = 0; i < n; i++) {
scanf("%d", &a[i]);
... | 3,120 | memory_bytes | {'s_id': 's364476890', 'p_id': 'p02971', 'u_id': 'u083910207', 'date': '1567027730', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '64', 'memory': '3120', 'code_size': '666'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint int_compare(const int* a, const int* b)\n{\n if (*a < *b) {\n return 1;\n ... |
CDSS_542004 | CDSS | #include <stdio.h>
#include <stdbool.h>
bool f(int x) {
int keta = 0;
while (x) {
keta++;
x /= 10;
}
return keta%2 == 1;
}
int main() {
int n;
scanf("%d", &n);
int ans = 0;
for (int i = 1; i <= n ; ++i) {
if (f(i)) ans++;
}
printf("%d", ans);
return 0;... | 128 | memory_bytes | {'s_id': 's396130147', 'p_id': 'p02952', 'u_id': 'u804880828', 'date': '1566936515', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '322'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdbool.h>\nbool f(int x) {\n int keta = 0;\n while (x) {\n keta++;\n x /= 10;\n ... |
CDSS_699893 | CDSS | #include <stdio.h>
int
main(int argc, char *argv[])
{
int n, a[100000], ans = - 1;
scanf("%d", &n);
for(int i = 0; i < n; i++){
scanf("%d", &a[i]);
}
int b[100000], i = 0;
b[0] = 1;
while(1){
b[i + 1] = a[b[i] - 1];
if(b[i + 1] == 2){
ans = i + 1;
break;
}
else if(i == n... | 512 | memory_bytes | {'s_id': 's941781132', 'p_id': 'p03680', 'u_id': 'u801102476', 'date': '1557753657', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '512', 'code_size': '384'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint\nmain(int argc, char *argv[])\n{\n int n, a[100000], ans = - 1;\n scanf(\"%d\", &n);\n for(int i = 0; i <... |
CDSS_481527 | CDSS | #include<stdio.h>
int main(){
int n;
scanf("%d",&n);
if(n%2==0){
printf("%d",n/2);
}else{
printf("%d",(n/2)+1);
}
} | 128 | memory_bytes | {'s_id': 's739945528', 'p_id': 'p02759', 'u_id': 'u815247632', 'date': '1585177701', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '133'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n;\n scanf(\"%d\",&n);\n if(n%2==0){\n printf(\"%d\",n/2);\n }else{\n printf(\"%d\",(n/... |
CDSS_319002 | CDSS | #include <stdio.h>
int main(void){
int a,b;
char op;
char i = 0;
while(1){
scanf("%d %c %d",&a,&op,&b);
if(op=='+'){
printf("%d\n",a+b);
}
else if(op=='-'){
printf("%d\n",a-b);
}
else if(op=='*'){
printf("%d\n",a*b);
... | 600 | memory_bytes | {'s_id': 's430083371', 'p_id': 'p02401', 'u_id': 'u360943149', 'date': '1494485028', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '471'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int a,b;\n char op;\n char i = 0;\n while(1){\n scanf(\"%d %c %d\",&a,&op,&b)... |
CDSS_295295 | CDSS | #include <stdio.h>
int main(){
int i,a[100000];
int count=0;
i=0;
while(1){
scanf("%d",&a[i]);
if(a[i]==0) break;
count++;
i++;
}
for(i=1;i<=count;i++){
printf("Case %d: %d\n",i,a[i-1]);
}
return 0;
} | 648 | memory_bytes | {'s_id': 's396547450', 'p_id': 'p02396', 'u_id': 'u146295980', 'date': '1461934297', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '218'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\tint i,a[100000];\n\tint count=0;\n\ti=0;\n\twhile(1){\n\t\tscanf(\"%d\",&a[i]);\n\t\tif(a[i]==0) br... |
CDSS_316853 | CDSS | #include <stdio.h>
int main (){
double r, pi = 3.141592653589;
scanf("%lf", &r);
printf("%f %f\n", r*r*pi, r*2*pi);
return 0;
}
| 2,048 | memory_bytes | {'s_id': 's682712199', 'p_id': 'p02400', 'u_id': 'u118351092', 'date': '1530342187', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '165'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (){\n double r, pi = 3.141592653589;\n \n scanf(\"%lf\", &r);\n \n printf(\"%f %f\\n\", ... |
CDSS_630501 | CDSS | #include<stdio.h>
void swap(int*, int*);
int main(void){
int a, b, c, s=0, t;
scanf("%d %d %d", &a, &b, &c);
if(a > b)
swap( &a, &b);
if(b > c)
swap( &b, &c);
if(a > b)
swap( &a, &b);
printf("%d\n", c - a);
return 0;
}
void swap( int *x, int *y){
int t;
t = *x;
*x = *y;
*y = ... | 128 | memory_bytes | {'s_id': 's372903572', 'p_id': 'p03292', 'u_id': 'u538438162', 'date': '1532613404', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '324'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nvoid swap(int*, int*);\n\nint main(void){\n int a, b, c, s=0, t;\n\n scanf(\"%d %d %d\", &a, &b, &c);\n if(a > ... |
CDSS_334317 | CDSS | #include<stdio.h>
int main(){
int H,W,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H==0&&W==0) break;
for(i=1;W>=i;i++){
printf("#");
if(i==W) printf("\n");
}
for(i=2;H>i;i++){
for(j=1;W>=j;j++){
if(j==1||j==W){
... | 1,752 | memory_bytes | {'s_id': 's005318201', 'p_id': 'p02404', 'u_id': 'u843915147', 'date': '1513937491', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1752', 'code_size': '580'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int H,W,i,j;\n while(1){\n scanf(\"%d %d\",&H,&W);\n if(H==0&&W==0) break;\n ... |
CDSS_583532 | CDSS | #include <stdio.h>
int main()
{
int a[5];
scanf("%d\n%d\n%d\n%d\n%d", &a[0], &a[1], &a[2], &a[3], &a[4]);
int ans = 0;
int minMod = 10;
for (int i=0; i<5; i++)
{
int mod = a[i] % 10;
if (mod != 0)
{
ans += a[i] + 10 - a[i] % 10;
if (mod < minMod)
... | 128 | memory_bytes | {'s_id': 's024009799', 'p_id': 'p03076', 'u_id': 'u929569377', 'date': '1584426544', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '444'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int a[5];\n scanf(\"%d\\n%d\\n%d\\n%d\\n%d\", &a[0], &a[1], &a[2], &a[3], &a[4]);\n int... |
CDSS_580207 | CDSS | #include<stdio.h>
int main(){
int a,b,c;
scanf("%d%d",&a,&b);
if(a>b+1){
c=2*a-1;
}
else if(b>a+1){
c=b*2-1;
}
else
c=a+b;
printf("%d\n",c);
return 0;
}
| 128 | memory_bytes | {'s_id': 's258012250', 'p_id': 'p03071', 'u_id': 'u313043608', 'date': '1555182299', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '189'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a,b,c;\n scanf(\"%d%d\",&a,&b);\n if(a>b+1){\n c=2*a-1;\n }\n else if(b>a+1){\n c=b*... |
CDSS_21529 | CDSS | #include <stdio.h>
int main(void)
{
int i, j;
for (i = 1; i <= 9; i++)
for (j = 1; j <= 9; j++)
printf("%dx%d=%d\n", i, j, i*j);
return 0;
} | 524 | memory_bytes | {'s_id': 's873888079', 'p_id': 'p00000', 'u_id': 'u820929609', 'date': '1377532997', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '159'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int i, j;\n\n for (i = 1; i <= 9; i++)\n for (j = 1; j <= 9; j++)\n printf(\"%dx%d... |
CDSS_402561 | CDSS | #include<stdio.h>
int main(void){
int X,Y;
int i;
int count=0;
scanf("%d %d",&X,&Y);
for(i=0;i<=X;i++){
int sum=(X-i)*4+i*2;
if(sum==Y){
printf("Yes\n");
count++;;
}
}
if(count==0){
printf("No\n");
}
return 0;
}
| 1,640 | memory_bytes | {'s_id': 's207461360', 'p_id': 'p02640', 'u_id': 'u401143821', 'date': '1595299889', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1640', 'code_size': '304'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(void){\n int X,Y;\n int i;\n int count=0;\n scanf(\"%d %d\",&X,&Y);\n \n for(i=0;i<=X;i++){... |
CDSS_74839 | CDSS | #include <stdio.h>
int max(int a, int b){
return a > b ? a : b;
}
int n, a[100][101];
int dp[101][101][101];
int main(void){
int x, y, z;
scanf("%d", &n);
for(x = 0; x < n; x++){
a[x][0] = 0;
for(y = 1; y <= n; y++){
scanf("%d", &a[x][y]);
a[x][y] += a[x][y-1];... | 4,624 | memory_bytes | {'s_id': 's869653233', 'p_id': 'p00098', 'u_id': 'u858885710', 'date': '1416243420', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '4624', 'code_size': '861'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint max(int a, int b){\n return a > b ? a : b;\n}\n\nint n, a[100][101];\nint dp[101][101][101];\n\nint main(... |
CDSS_374605 | CDSS | #include<stdio.h>
#include<string.h>
int main()
{
int i=0;
char s[10000];
scanf("%s",&s);
i=strlen(s);
for(i=i-1;i>=0;i--)
{
if(s[i]=='s')
{
s[i+3]=s[i+1];s[i+1]='e';s[i+2]='s';break;
}
else
{
... | 1,668 | memory_bytes | {'s_id': 's857905006', 'p_id': 'p02546', 'u_id': 'u581441811', 'date': '1600546899', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1668', 'code_size': '422'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must 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=0;\n char s[10000];\n scanf(\"%s\",&s);\n i=strlen(s)... |
CDSS_253481 | CDSS | #include<stdio.h>
int main(){
int a, b, syu, menn;
scanf("%d", &a);
scanf("%d", &b);
syu = 2 * a + 2 * b ;
menn = a * b ;
printf("%d %d\n", menn,syu);
return 0;
} | 596 | memory_bytes | {'s_id': 's922408298', 'p_id': 'p02389', 'u_id': 'u024822943', 'date': '1479172929', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '163'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint a, b, syu, menn;\nscanf(\"%d\", &a);\nscanf(\"%d\", &b);\nsyu = 2 * a + 2 * b ;\nmenn = a * b ;\np... |
CDSS_37368 | CDSS | #include <stdio.h>
#include <string.h>
int main()
{
char str[21];
int i;
scanf("%s", str);
for(i=strlen(str) - 1; i>=0; --i){
putchar(str[i]);
}
printf("\n");
return 0;
} | 524 | memory_bytes | {'s_id': 's248999040', 'p_id': 'p00006', 'u_id': 'u765849500', 'date': '1441794754', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '188'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n \nint main()\n{\n char str[21];\n int i;\n\n scanf(\"%s\", str);\n for(i=strlen(str) - 1; ... |
CDSS_161328 | CDSS | #include <stdio.h>
#define N 200000
int n, j,maxv,minv;
int R[N];
int main(void)
{
scanf("%d",&n);
for(j = 0; j < n; j++){
scanf("%d",&R[j]);
}
maxv = R[1]- R[0];
minv = R[0];
for(j = 1; j < n; j++){
if(maxv < R[j] - minv){
maxv = R[j] - minv;
} else { maxv = m... | 1,376 | memory_bytes | {'s_id': 's473141331', 'p_id': 'p02258', 'u_id': 'u574330094', 'date': '1478615914', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '1376', 'code_size': '476'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 200000\n\n\nint n, j,maxv,minv;\nint R[N];\nint main(void)\n{\n\t\n\t\n\tscanf(\"%d\",&n);\n\t\n\t\n\tfo... |
CDSS_115696 | CDSS | #include <stdio.h>
int main(void)
{
int n,i,ans;
int s[100];
for(;;){
int max=0,min=1000,sum=0;
scanf("%d", &n);
if(n==0) break;
for(i=0;i<n;i++){
scanf("%d", &s[i]);
if(s[i]>max) max=s[i];
if(s[i]<min) min=s[i];
sum+=s[i];
}
ans=(sum-max-min)/(n-2);
printf("... | 600 | memory_bytes | {'s_id': 's331299336', 'p_id': 'p00728', 'u_id': 'u257792217', 'date': '1444810865', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '352'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int n,i,ans;\n int s[100];\n\n for(;;){\n int max=0,min=1000,sum=0;\n scanf(\"%d\",... |
CDSS_142358 | CDSS | #include <stdio.h>
#include <stdlib.h>
#define N 8
#define ON 1
#define OFF 0
#define TRUE 1
int X[N], Y[N], sir[N][N], L[2*N-1], R[2*N-1];
void Output(){
int i, j;
for(i = 0 ; i < N ; i++){
for(j = 0 ; j < N ; j++){
if(sir[i][j] == TRUE){
if(X[i] != j){
return;
}
}
... | 2,112 | memory_bytes | {'s_id': 's769194584', 'p_id': 'p02244', 'u_id': 'u128532549', 'date': '1533258349', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1251'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\n#define N 8\n#define ON 1\n#define OFF 0\n#define TRUE 1\n\nint X[N], Y[N], sir[N][N], L[2*... |
CDSS_245390 | CDSS | #include<stdio.h>
int main(){
int x;
scanf("%d",&x);
x=x*x*x;
printf("%d\n",x);
return 0;
} | 596 | memory_bytes | {'s_id': 's123936804', 'p_id': 'p02388', 'u_id': 'u329089687', 'date': '1496306527', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '111'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int x;\n scanf(\"%d\",&x);\n x=x*x*x;\n printf(\"%d\\n\",x);\n return 0;\n}\nPredict i... |
CDSS_350329 | CDSS | #include <stdio.h>
int main(void){
int count[4][3][10] ={};
int n,b,f,r,v,i,k,m;
scanf("%d\n",&n);
for(i=0;i<n;i++){
scanf("%d %d %d %d\n",&b,&f,&r,&v);
count[b-1][f-1][r-1] = count[b-1][f-1][r-1]+v;
}
for(i=0;i<4;i++){
for(m=0;m<3;m++){
for(k=0;k<10... | 2,112 | memory_bytes | {'s_id': 's806417525', 'p_id': 'p02409', 'u_id': 'u974292487', 'date': '1533472174', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '507'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int count[4][3][10] ={};\n int n,b,f,r,v,i,k,m;\n scanf(\"%d\\n\",&n);\n \n for(i... |
CDSS_701336 | CDSS | #include<stdio.h>
int main()
{
int n,st[100],i,max,min;
scanf("%d",&n);
if(n>=1&&n<=100)
{
for(i=0; i<n; i++)
{
scanf("%d",&st[i]);
}
max=st[0];
min=st[0];
for(i=1; i<n; i++)
{
if(st[i]>max)
max=st[i];
... | 128 | memory_bytes | {'s_id': 's562778545', 'p_id': 'p03694', 'u_id': 'u816631826', 'date': '1587028177', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '435'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,st[100],i,max,min;\n scanf(\"%d\",&n);\n if(n>=1&&n<=100)\n {\n for(i=0; i... |
CDSS_389101 | CDSS | #include <stdio.h>
int main() {
int L, R, d, i;
scanf("%d %d %d", &L, &R, &d);
(L % d == 0) ? printf("%d\n", R / d - L / d + 1) : printf("%d\n", R / d - L / d);
return 0;
} | 1,732 | memory_bytes | {'s_id': 's424619038', 'p_id': 'p02606', 'u_id': 'u492598592', 'date': '1595429574', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '184'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int L, R, d, i;\n scanf(\"%d %d %d\", &L, &R, &d);\n \n (L % d == 0) ? printf(\"%d\\n\", R / ... |
CDSS_394960 | CDSS | #include<stdio.h>
int main()
{
int a,z,y;
scanf("%d",&a);
z=a*a;
y=z*a;
printf("%d\n",a+z+y);
return 0;
}
| 1,724 | memory_bytes | {'s_id': 's834523084', 'p_id': 'p02621', 'u_id': 'u621146716', 'date': '1593460664', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1724', 'code_size': '112'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a,z,y;\n\tscanf(\"%d\",&a);\n\tz=a*a;\n\ty=z*a;\n\tprintf(\"%d\\n\",a+z+y);\n\treturn 0;\n}\n\... |
CDSS_531792 | CDSS | #include<stdio.h>
int main(void){
char s[4], t[4];
int i, n;
scanf("%s%s",s,t);
i=0; n=0;
while(s[i] != '\0'){
if(s[i] == t[i]){
n++;
}
i++;
}
printf("%d\n", n);
return 0;
} | 1,732 | memory_bytes | {'s_id': 's511481044', 'p_id': 'p02921', 'u_id': 'u005542640', 'date': '1597591207', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '246'} | [
{
"content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n char s[4], t[4];\n int i, n;\n\n scanf(\"%s%s\",s,t);\n i=0; n=0;\n while(s[i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.