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 1000. A+B Problem

about memory limit(Virtual address space RULEZ)
Posted by [neUSU]And_IV 22 Feb 2009 04:42
#include<iostream>
#include<algorithm>
#include <iomanip>
using namespace std;
int cc[0x0FFFFFFF];
int main()
{
cc[0x0FFFFFF]=13;
int a,b;
cin>>a>>b;
cout<<a+b;
return 0;
}
0x0FFFFFFF -256M
Re: about memory limit(Virtual address space RULEZ)
Posted by strider 23 Feb 2009 10:38
Maybe optimizer throws out your array? If to do

cin  >> cc[0x0ffffffd] >> cc[0x0ffffffe];
cout << cc[0x0ffffffd] +  cc[0x0ffffffe];

?