Search found 2 matches

by cathy
Tue Jun 22, 2010 6:17 pm
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 70789

Re: 10137 - The Trip

Can someone please explain why the answer to this case is $0.02 and not $0.01? Seems like you only need to move one penny from the second person to the first person and then they are all within one penny of each other.

15
0.01
0.03
0.03
0.03
0.03
0.03
0.03
0.03
0.03
0.03
0.03
0.03
0.03
0.03
0.03 ...
by cathy
Sat Mar 28, 2009 11:50 pm
Forum: Volume 115 (11500-11599)
Topic: 11583 - Alien DNA
Replies: 5
Views: 1919

Re: 11583 - Alien DNA

How is it possible to solve this problem if you get TLE just reading the input??? This program gives me TLE:

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

int main()
{
long long i, n, x, nc, cuts=0;
string s;
cin >> nc;
for (x = 0; x < nc; x++) {
cin >> n;
for (i = 0; i < n; i ...

Go to advanced search