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 1336. Problem of Ben Betsalel

why get 'ac' used ""pascl"" ?but....
Posted by lian lian 3 Jan 2008 00:41
why get 'ac'  used  ""pascl""

var n:int64;

begin

  readln(n);

  writeln(n*n);

  writeln(n);

end.
---------------------------------
but:
 #include<stdio.h>
int main()
{  unsigned  long long n;
               scanf("%lld",&n);
               printf("%lld\n",n*n);
               printf("%lld\n",n);
 return 0;
}

who could tell me when i use "c",get "wa"?   i am confused;

Re: why get 'ac' used ""pascl"" ?but....
Posted by KIRILL(ArcSTUpid coder:) 3 Jan 2008 15:21
read FAQ
for long long you should use %I64d
Re: why get 'ac' used ""pascl"" ?but....
Posted by lian lian 3 Jan 2008 18:27
thanks!