ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2011. Long Statement

No Need To Use Loop, Only If can solve it
Posted by Sherxon WIUT 27 Nov 2014 01:14
Re: No Need To Use Loop, Only If can solve it
Posted by Bahodir | {TUIT} | 6 Dec 2014 19:28
...

Edited by author 06.12.2014 19:30
Re: No Need To Use Loop, Only If can solve it
Posted by Habib [ Tashkent U of IT ] 9 Aug 2017 09:40
I solve without loop but is return WA#4

There is my algorithm :
if in list has 1 , 2 , 3 together always "Yes"
otherwise "No" am I right or any case is there ?

Edited by author 09.08.2017 09:41

Edited by author 09.08.2017 09:42
Re: No Need To Use Loop, Only If can solve it
Posted by Mahilewets Nikita [BSUIR] 12 Aug 2017 16:24
You can get six combinations with two a's and two b's

You can get six combinations with one a and five b's
Re: No Need To Use Loop, Only If can solve it
Posted by Habib[Tashkent U of IT] 16 Aug 2017 15:45
Sorry but I don't understand what do you mean !
Give me  Test Case #4
Re: No Need To Use Loop, Only If can solve it
Posted by Mahilewets Nikita [BSUIR] 17 Aug 2017 00:16
0011
0101
0110
1001
1010
1100

That is six
Re: No Need To Use Loop, Only If can solve it
Posted by Mahilewets Nikita [BSUIR] 17 Aug 2017 00:17
000001
000010
000100
001000
010000
100000

That is also six
Re: No Need To Use Loop, Only If can solve it
Posted by Mahilewets Nikita [BSUIR] 17 Aug 2017 00:17
012
021
102
120
201
210

And that is six
Re: No Need To Use Loop, Only If can solve it
Posted by Habib[Tashkent U of IT] 30 Aug 2017 11:22
Answer is No , Correct ?
Mahilewets Nikita [BSUIR] wrote 17 August 2017 00:16
0011
0101
0110
1001
1010
1100

That is six
Re: No Need To Use Loop, Only If can solve it
Posted by Mahilewets Nikita [BSUIR] 30 Aug 2017 18:43
https://ideone.com/hG0aZ4
I do not want to say anything more
Maybe just look at my code