## Search found 84 matches

Fri Feb 27, 2009 8:19 am
Forum: Volume 115 (11500-11599)
Topic: 11582 - Colossal Fibonacci Numbers!
Replies: 8
Views: 1878

### Re: 11582 - Colossal Fibonacci Numbers!

Thanks tryit , i try it
Fri Feb 27, 2009 8:17 am
Forum: Volume 115 (11500-11599)
Topic: 11582 - Colossal Fibonacci Numbers!
Replies: 8
Views: 1878

### Re: 11582 - Colossal Fibonacci Numbers!

thanks Jan but i dont have idea for solving that
could u give me some hints ?
Fri Feb 27, 2009 8:04 am
Forum: Volume 103 (10300-10399)
Replies: 59
Views: 22062

### How i get Acc

it`s really strange , for this problem we should use topological sort and dfs but i get Acc with this code :o struct d{ int x;double t; }list[101]; int main(){ //ifstream cin("c.in"); int n,m; while(cin>>n>>m&&!(!n&&!m)){ int x,y; for(int i=0;i<=n;i++) list[i].x=i,list[i].t=0; for(int i=0;i<m;i++) ...
Thu Feb 26, 2009 8:22 pm
Forum: Volume 115 (11500-11599)
Topic: 11582 - Colossal Fibonacci Numbers!
Replies: 8
Views: 1878

### 11582 - Colossal Fibonacci Numbers!

here is mycode :

Code: Select all

``````Accepted
``````
Thu Feb 26, 2009 5:54 pm
Forum: Volume 102 (10200-10299)
Topic: 10222 - Decode the Mad man
Replies: 30
Views: 9553

### Re: 10222 - Decode the Mad Man

you can use while(getline(cin,s)) , where "s" is a string .
inputs aren`t "q ,a, z, w, s ,x"
Thu Feb 26, 2009 7:40 am
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 45056

### Re: 10324 - Zeros and Ones

I got Acc ,
it "int a[1000000]" gives me stack overflow
but i can use "vector <int> a (1000000)" or a dynamic array
Wed Feb 25, 2009 8:42 am
Forum: Volume 104 (10400-10499)
Topic: 10432 - Polygon Inside A Circle
Replies: 62
Views: 20690

### Re: 10432 - ***Strange***

i found size of polygon side and i calculated area of each triangle with this formula : *** B is radius and A is side of polygon return sqrt(((A*A+B*B+B*B)*(A*A+B*B+B*B))-2*(pow(A,4.0)+pow(B,4.0)+pow(B,4.0)))/4.0; i thought here exist error for result of area so i use EPS but i got WA i change my fo...
Tue Feb 24, 2009 10:05 am
Forum: Volume 106 (10600-10699)
Topic: 10682 - Forró Party
Replies: 14
Views: 9199

### Re: 10682 - Forró Party

I get WA
I dont know WHY ?
my code passes all of your inputs
HELP ME
here is my Code :

Code: Select all

``````Accepted
problem was here :
"If there is more than one route, print that where the cities appear first in the input"
``````
Sun Feb 22, 2009 9:44 am
Forum: Volume 111 (11100-11199)
Topic: 11101 - Mall Mania
Replies: 25
Views: 11151

### Re: 11101 - Mall Mania

Code: Select all

``````Accepted
Spoiler :[BFS && Multi Source]
``````
Sat Feb 21, 2009 6:03 pm
Forum: Volume 4 (400-499)
Topic: 469 - Wetlands of Florida
Replies: 63
Views: 21740

### Re: Wetlands Of Florida - 469

To frandres I think you should use BFS instead of recursive method for this problem and you get Run Time error with this code because in your code you dont allocate space for your string string position; position[0] = grid[grid.size()-1][0]; position[1] = ' '; position[2] = grid[grid.size()-1][2]; i...
Sat Feb 21, 2009 5:44 pm
Forum: Volume 4 (400-499)
Topic: 469 - Wetlands of Florida
Replies: 63
Views: 21740

I dont know anything about Pascal
but i think your code dont print blank line between consecutive outputs .
Fri Feb 20, 2009 2:07 pm
Forum: Volume 115 (11500-11599)
Topic: 11572 - Unique Snowflakes
Replies: 36
Views: 13032

### Re: 11572 - Unique Snowflakes

PLZ HELP ME
I get Wrong ans
here is my code :

Code: Select all

``Accepted``
Thu Feb 19, 2009 6:58 pm
Forum: Volume 1 (100-199)
Topic: 120 - Stacks of Flapjacks
Replies: 118
Views: 14321

### Re: 120 Still WA. If you get AC, please try this input.

Accepted , thanks coze
Wed Feb 18, 2009 10:48 am
Forum: Volume 101 (10100-10199)
Topic: 10102 - The path in the colored field
Replies: 34
Views: 13277

### Re: 10102 - The Path in the Colored Field

I got Acc in 0.030 when i use cin ,but i can`t use scanf for reading input ( i got wrong with scanf ) like this : for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ scanf("%c",s[i][j]); } getchar();//For enter in end of each line } how can i reduce time of mycode ? thanks in advance :wink:
Tue Feb 17, 2009 11:50 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 53469

### Re: 10267 - Graphical Editor

Code: Select all

``REMOVED``