Search found 7 matches

by Dmitry R
Sun Jul 22, 2007 2:23 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 35365

116 - Need help with PE

Hello!

Could you tell me please what is special with the output in this task? My program generates the same output for sample tests as in the tasks, without any trailing spaces, and gets a Presentation Error.
by Dmitry R
Mon Aug 21, 2006 12:11 am
Forum: C++
Topic: C++ language and <ios> include file
Replies: 6
Views: 4803

Moha wrote:for UVA you should use cout.setf(ios::fixed) and cout.precision(3).
Thank you very much. I'll do.
by Dmitry R
Sun Aug 20, 2006 11:33 pm
Forum: C++
Topic: C++ language and <ios> include file
Replies: 6
Views: 4803

Is ios a proper file to add? I've never heard about it....isn't it included in iostream? Maybe it is. But even without it, there is another problem #include <iostream> #include <iomanip> const int MAX = 101; int field[MAX][MAX]; bool used[MAX]; int main(void) { while (true) { static int count = 0; ...
by Dmitry R
Sun Aug 20, 2006 8:20 pm
Forum: C++
Topic: C++ language and <ios> include file
Replies: 6
Views: 4803

C++ language and <ios> include file

How does it come that the C++ compiler cannot find the <ios> header file from STL? Here is a program I sent to the Judge: #include <iostream> #include <ios> #include <cstdio> #include <iomanip> const int MAX = 101; int field[MAX][MAX]; bool used[MAX]; int main(void) { while (true) { static int count...
by Dmitry R
Fri Jan 06, 2006 6:21 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 13252

Do you count an exchange to starting currency as an exchange operation? If no, it can become a 21st exchange and your program will still output that there is a sequence of not more than 20 exchanges...
by Dmitry R
Fri Jan 06, 2006 6:12 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 19499

Does your program work corectly if N has prime divisors of power more than one?
For example, it returns

Code: Select all

40 337
for input of

Code: Select all

100 81
instead of

Code: Select all

10 271
.
by Dmitry R
Fri Jan 06, 2006 6:00 pm
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 162
Views: 15561

Can you help me? I tried to submit two programs. This one got AC: /* Edited */ It is just like the second, but all the types are double instead of long double... And this one got a WA: #include <stdio.h> #include <math.h> int main(void) { long double n, p; while (scanf("%Lf %Lf", &n, &p) == 2) print...

Go to advanced search