Search found 1 match

by markthom
Thu Dec 20, 2007 6:48 am
Forum: Volume 112 (11200-11299)
Topic: 11281 - Triangular Pegs in Round Holes
Replies: 26
Views: 13612

Wrong answer as well

I also get WA with the following block of code:


#include <iostream>
#include <cmath>
using namespace std;

#define PI 3.141592653589793

int main()
{
double holes[100];
int num_holes = 0;
int i;

cin >> num_holes;

for(i = 0; i < num_holes; i++) {
cin >> holes[i];
}

int num_pegs = 0 ...

Go to advanced search