Problem 150 is bugged?

Back to General discussions forum

WagnerWD40     2020-09-24 18:13:48

I'm getting a wreid answer as the correct one, I am the only one?

Rodion (admin)     2020-09-25 15:29:48
User avatar

It's hard to tell... can you share "weird answer", please?

Note, however, that this problem is checked somewhat differently - regexp should be submitted, not the code - and it is tested against randomly-generated data which you can't see.

WagnerWD40     2020-09-25 17:17:38

Sorry for not posting before, I know that my code was incorrect, there is the feedback I got:

Sorry, for test data<br/><br/>02475
02
5CH
031
0342
1011000b
0b100
9H
7
0B101101
0x6
201220B
11100B
2b
0B1001001111011
0x27
1000B
21B
8H
7273
0X6
0X345
21B
10000b
1110110101b
0B220000
35H
053
0B10001001001
222020b
01
110000001b
0B10101110001<br/><br/>Your code returned<br/><br/>dec dec hex dec dec bin bin 9H dec hex hex hex hex 2b hex hex hex hex 8H dec hex6 hex345 hex bin bin hex hex dec hex 222020b dec bin hex<br/><br/>instead of<br/><br/>oct oct hex oct oct bin bin hex dec bin hex 201220B bin 2b bin hex bin 21B hex dec hex hex 21B bin bin 0B220000 hex oct bin 222020b oct bin bin

All this were in the correct answer box. Now that I saw it again, it´s really computing the correct vales, they are just at the end of the feedback message. Sorry for the inconvenience.

Alexandr Milovantsev     2020-09-28 09:36:08

In your posted example first line is octal number, but you detect it as decimal. It is wrong. And the second line have the same error. And so on.

Please login and solve 5 problems to be able to post at forum