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

Life, the Universe, and Everything: time exceeded

$
0
0

m getting time limit exceeded for the following code:

#include<stdio.h>

int main()
{
     int num;
     while(scanf("%d",&num)!=42)
         printf("%d\n",num);
     return 0;
}

Viewing all articles
Browse latest Browse all 39796

Trending Articles



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