plz help- it's time limit exceeded,but I can't think of anything else yet
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
freopen("D://test.txt","r",stdin);
freopen("D://out.txt","w",stdout);
long long i,j,p[5010],t,n,sum,k;
while(scanf("%lld",&n)!=EOF)
{
for(i=0;i ...
Search found 3 matches
- Wed Apr 07, 2010 1:21 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11386 - Triples
- Replies: 23
- Views: 10992
- Wed Apr 07, 2010 4:52 am
- Forum: Volume 113 (11300-11399)
- Topic: 11386 - Triples
- Replies: 23
- Views: 10992
11386 - triples
plz help- it's time limit exceeded,but I can't think of anything else yet :evil:
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
freopen("D://test.txt","r",stdin);
freopen("D://out.txt","w",stdout);
long long i,j,p[6000],t,n,sum,k;
while(scanf("%lld",&n)!=EOF)
{
for ...
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
freopen("D://test.txt","r",stdin);
freopen("D://out.txt","w",stdout);
long long i,j,p[6000],t,n,sum,k;
while(scanf("%lld",&n)!=EOF)
{
for ...
- Fri Dec 18, 2009 12:26 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11369 - Shopaholic
- Replies: 9
- Views: 7655
Re: 11369 - Shopaholic
can anyone please help me with this???? it says WA. :(
=========================================================
#include<stdio.h>
#include<iostream>
#include<algorithm>
using namespace std;
long int a[20005];
int main()
{
freopen("D://test.txt","r",stdin);
freopen("D://out.txt","w",stdout ...
=========================================================
#include<stdio.h>
#include<iostream>
#include<algorithm>
using namespace std;
long int a[20005];
int main()
{
freopen("D://test.txt","r",stdin);
freopen("D://out.txt","w",stdout ...