Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

Why is C program taking more memory than usual in codechef?

$
0
0

Just used two integer variables in my program and codechef says Mem 2.2M

ID Date/Time User Result Time Mem Lang Solution

4112817 41 min ago pravinkumarr 0.09 2.2M C View

My program is

include<stdio.h>

int main()

{

int T,N;
scanf("%d",&T);
while(T--)
{
    scanf("%d",&N);
    N=N&0xfffffffe;
    printf("%d\n",N);
}
return 0;

}

Not only in this program, but also in 2 more programs where I used just 2 integers and it says 2.2M.


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>