Search found 6 matches

by iran
Sat Sep 15, 2007 8:15 pm
Forum: Volume 112 (11200-11299)
Topic: 11281 - Triangular Pegs in Round Holes
Replies: 26
Views: 13605

Oh right, (sorry i have mistake :oops: ) you are correct i found why this code got wa thank you very much but what is the correct method to solve it?

thanks again. :wink:
by iran
Sat Sep 15, 2007 8:07 pm
Forum: Volume 112 (11200-11299)
Topic: 11281 - Triangular Pegs in Round Holes
Replies: 26
Views: 13605


1
100.0
1
51.0 51.0 100.0
Peg A will fit into hole(s): 1

Your output is wrong can you explain how can 51 51 100 fit into a circle with diameter 100.
i think the correct output is : "Peg A will not fit into any holes" .

please see link below i depict the testcase.

http://www.sharemation.com ...
by iran
Sat Sep 15, 2007 8:02 pm
Forum: Volume 112 (11200-11299)
Topic: 11281 - Triangular Pegs in Round Holes
Replies: 26
Views: 13605

Your output is wrong can you explain how can 51 51 100 fit into a circle with diameter 100.
i think the correct output is : "Peg A will not fit into any holes" .

please see link below i depict the testcase.

http://www.sharemation.com/taksavar7/ci ... niq=2qpocc
by iran
Sat Sep 15, 2007 4:07 pm
Forum: Volume 112 (11200-11299)
Topic: 11281 - Triangular Pegs in Round Holes
Replies: 26
Views: 13605

strange

I used same approach but wa.

// In the name of God

#include <iostream>
#include <cmath>
#include <vector>

using namespace std;

#define eps 1e-7

double hole[100];

int main ()
{
int n, nh, i, j;
double a, b, c, k, R;
cin >> nh;
for( i = 0; i < nh; i++ )
cin >> hole[i];

cin >> n;
for( i ...
by iran
Mon Aug 13, 2007 8:47 am
Forum: Volume 101 (10100-10199)
Topic: 10180 - Rope Crisis in Ropeland!
Replies: 39
Views: 27630

10180 how many wrong

if somebody find why this code go wrong he or she is really clever!
it pass all testdata in past topics.
link below show my approach.
[img]
http://www.sharemation.com/taksavar7/rope.bmp?uniq=gu7lot
[/img]


// In the name of God
// 10180
#include <iostream>
#include <cmath>

using namespace std ...
by iran
Sun Feb 04, 2007 7:00 pm
Forum: Volume 101 (10100-10199)
Topic: 10138 - CDVII
Replies: 18
Views: 10509

Input:

1

10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
A 01:01:23:10 enter 20
A 01:01:23:11 exit 10
A 01:02:00:00 exit 20
A 01:02:00:01 enter 20
A 01:02:01:00 exit 10

Output:
A $6.00

Go to advanced search