Search found 2 matches
- Tue Feb 10, 2009 5:56 am
- Forum: Volume 115 (11500-11599)
- Topic: 11512 - GATTACA
- Replies: 23
- Views: 10129
helpme
my code passed all testcase..... but TLE......... somebody helpme plz........ #include <iostream> #include <string> #include <map> #include <algorithm> using namespace std; int main() { int cnt; string input; cin>>cnt; while(cnt) { map<string,int> pattern; int MAX_LEN = -1; int MAX_CNT = -1; int a =...
- Fri Jan 16, 2009 10:43 am
- Forum: Volume 110 (11000-11099)
- Topic: 11096 - Nails
- Replies: 28
- Views: 15061
somebody help mp!!!!!!!!!!!!!!!!!!!
i take wrong anser 10hours!!!!!!!!!!! somebody help me i don't know what's wrong... my abs algorithm int abs(int a) { return a>=0?a:-1*a; } my dist algorithm double dist(Axis a,Axis b) { double x = pow(a.x - b.x , (double) 2); double y = pow(a.y - b.y , (double) 2); return pow(x+y,(double)0.5); } my...