Search found 2 matches

by liqu
Mon Sep 05, 2005 10:30 am
Forum: Volume 102 (10200-10299)
Topic: 10268 - 498-bis
Replies: 51
Views: 24155

10268 (498') got WA!

It seems that my program works ok with all the cases i can figure out , but i consistently get WA !
Maybe some good guy can help me with it~


#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <math.h>

using namespace std;

int main()
{
int x;
char a ...
by liqu
Thu Aug 25, 2005 7:28 pm
Forum: Volume 100 (10000-10099)
Topic: 10041 - Vito's Family
Replies: 90
Views: 45072

10041 vito's family ~ Plez Help me ~ thax

I got a TLE result . :cry:

Here is my code :
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <iostream.h>
using namespace std;

int compare (const void * a, const void * b)
{
return ( *(int*)a - *(int*)b );
}

int main()
{
int n,i,r,j,k;
cin>>n;
for(i=1;i<=n;i++)
{
long min ...

Go to advanced search