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

Common Board

int64
Posted by Paul Diac 13 Sep 2004 15:22
How do I use int64 and what are his limits? Can it be signed/unsigned?

Edited by author 13.09.2004 15:23
Re: int64
Posted by morbidel 13 Sep 2004 18:02
for example, problem 1000:

#include <stdio.h>
__int64 A, B;
unsigned __int64 Result;


int main()
{
scanf("%I64d %I64d", &A, &B);
Result = A + B;
printf("%I64u\n", Result);

return 0;
}
Re: int64
Posted by Macarie 13 Sep 2004 18:06
Oh, I forgot,
for signed, limits are: [-9,223,372,036,854,775,808..9,223,372,036,854,775,807] and for unsigned [0..18,446,744,073,709,551,615].
Re: int64
Posted by Paul Diac 13 Sep 2004 23:18
thanks