Search found 3 matches

by cpmicpmi
Sat Sep 25, 2004 5:27 pm
Forum: Volume 106 (10600-10699)
Topic: 10695 - Find the Point
Replies: 16
Views: 12168

I calculate the coordinates directly,but WA.


#include <iostream.h>
#include <math.h>
#define Pi 3.141592653589793238462643
int main()
{
int x1, y1, x2, y2, x3, y3;
int d1,d2,d3;
int M=0;
double a,b,c,A,B,C,x,y;
cout.setf(ios::fixed);
cout.precision(6);
while(cin>>x1>>y1>>x2>>y2>>x3>>y3 ...
by cpmicpmi
Thu Oct 09, 2003 5:19 pm
Forum: Volume 105 (10500-10599)
Topic: 10557 - XYZZY
Replies: 31
Views: 20662

Here is my code.Could you tell me what's wrong in it??


#include<iostream>
#include<fstream>
#include<queue>
#include<memory.h>
using namespace std;
ifstream fin("10557.in");
int eg[101][101];
bool way[101][101];

bool go(int n)
{
int i,j,k;
if(n==1)return true;

for(i=0;i<n;i++)
{
for(j=0;j ...
by cpmicpmi
Thu Oct 09, 2003 2:49 pm
Forum: Volume 105 (10500-10599)
Topic: 10557 - XYZZY
Replies: 31
Views: 20662

Do not use Floyd algo , how to solve it?
I got TLE using BFS.
:cry:

Go to advanced search