Search found 2 matches

by ptargino
Sun Dec 21, 2008 5:01 pm
Forum: Volume 115 (11500-11599)
Topic: 11555 - Aspen Avenue
Replies: 6
Views: 2548

Re: 11555 - Aspen Avenue

I can't understand what is wrong with my code. I'm getting WA. Could anyone help me?


#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <algorithm>

using namespace std;

double min(double a, double b) {
return a < b ? a : b;
}

double abs(double a) {
return a < 0 ? -a : a ...
by ptargino
Sat Nov 08, 2008 8:33 pm
Forum: Volume 106 (10600-10699)
Topic: 10679 - I Love Strings!!
Replies: 101
Views: 69317

Re: 10679 - I love Strings!!!

The test cases of this problems are wrong. Actually, you just need to verify if each substring is prefix of the original. I've done this way and got AC. :D

Go to advanced search