ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1005. Stone Pile

Please, explain why this code does not get input data for 1005
Posted by Artema San 12 Oct 2001 02:42
Could anybody explain why this code just trying to get
input data fo 1005 works more than  5 seconds

#include<stdio.h>
void main()
{
  long a[21],i;
  printf("\n");
  scanf("%ld",&i);
  a[i]=0;
  while(i--)scanf("%li",&a[i]);
}

Does it mean that input may ends not with \n