| Show all threads Hide all threads Show all messages Hide all messages |
| ambiguous statement | 🦄Imosk72🦄∭GTGU∭ | 2114. My craft | 19 Apr 2019 18:26 | 2 |
sentenсe "for which x0 ≤ x, y0 ≤ y (as in the game the southeast wind blows)" looks like x0 <= x <= y and x0 <= y0 <=y but in fact it should be x0 <= x and y0 <= y Thank you for your comment. Problem statement was fixed. |
| If you have WA #110 | bsu.mmf.team | 2117. Polyphemus' triples | 19 Apr 2019 03:28 | 1 |
Try C = 794569207093795778 Answer: 315152584 |
| why wrong answer(3)? c++ | Dima Puz | 1001. Reverse Root | 17 Apr 2019 08:09 | 3 |
[code deleted] Edited by author 02.04.2019 21:28 Edited by author 02.04.2019 21:49 Edited by moderator 19.11.2019 23:34 Change while (!cin.eof()){ cin >> a; mass.push_back(a); } mass.erase(mass.end()-1); To while (cin >> a) { mass.push_back(a); } |
| This is too easy | gunfighter(ノ-_-)ノ彡┻━┻ | 1026. Questions and Answers | 16 Apr 2019 23:50 | 1 |
Wonder why this task has a 147 complexity. Just sort and write |
| Thanks for the problem. I'm high) | Kirom `Ekexity [SESC17]💻 | 2114. My craft | 16 Apr 2019 22:23 | 1 |
|
| Hints | Marius Zilenas | 1014. Product of Digits | 16 Apr 2019 19:57 | 4 |
Hints Marius Zilenas 16 Oct 2013 15:03 Factorize (in 1..9 figures) the N and then reduce the resulting number of figures. Re: Hints Ealham Al Musabbir 9 Jul 2015 16:05 Re: Hints abdur rahman shajib 11 Oct 2018 13:39 For each i = 9 to 2, repeatedly divide n by i until it cannot be further divided or the list of numbers from 9 to 2 gets finished. Also, in the process of division push each digit i onto the stack which divides n completely. After the above process gets completed check whether n == 1 or not. If not, then print “-1”, else form the number k using the digits from the stack containing the digits in the same sequence as popped from the stack |
| Please Help to understand the question | anancodec | 2112. Battle log | 16 Apr 2019 13:32 | 2 |
I didn't understand if a player is hit by another ,what will be the changed condition of him? max(0,cur-1) or max(0,cur-2)? if "HIT IN BODY" then max(0, cur - 1) if "HIT IN HEAD" then max(0, cur - 2) |
| WA 2 py 3.6 | DonCezario | 1131. Copying | 16 Apr 2019 01:33 | 1 |
n, k =map(int, input().split(' ')) z=0 time=0 num = 1 progress = 2 if k==1 and n==1: print(n) elif k ==1: print(n-1) elif k>=n: time+=1 while num<n: num+=progress progress*=2 time+=1 print(time) else: time+=1 while z==0: if progress<=k and num<n: num+=progress progress*=2 time+=1 else: z+=1 progress=k if num<n: while num<n: if num<n: time+=1 num+=progress print(time) Edited by author 16.04.2019 01:34 |
| Survive the flood | anancodec | | 15 Apr 2019 18:50 | 1 |
In the problem "2113. Survive the flood" I did't understand the condition of when the rabbit can jump to a cell and also I mean what's a jump height? Edited by author 15.04.2019 18:51 |
| Что значит (технически) ограничение по памяти. | Konstantin | 1306. Sequence Median | 15 Apr 2019 16:41 | 1 |
Здравствуйте. Это хорошо задача (для медианы не существует хорошего агрегата) требующая для точного решения хранения минимум N\2 чисел. И тем более эффективная по времени решения, чем больше чисел мы одновременно можем хранить. Поэтому хотелось бы точно знать что значит ограничение на 1MБ по памяти. |
| Umm, I just used the method which you will use when you face this problem as an elementary school maths exercise. | some_programming_novice | 1403. Courier | 15 Apr 2019 08:10 | 1 |
1. sort these orders for the following for loop; 2. can I serve current order? is there a not used day left for it? wow, that's easy if I can use std::set::upper_bound; 3. output our selected orders with delivery time. // wow accepted, so lucky I am. // after checked the discussion, found that this problem can be easily solve with priority queue, looks that priority queue is more convenient. |
| No subject | ilUha | | 14 Apr 2019 22:56 | 1 |
Edited by author 14.04.2019 22:57 |
| About Test 2 | rodge(Vologda ML) | 1120. Sum of Sequential Numbers | 14 Apr 2019 11:04 | 4 |
If you have WA 2 look this test 6 ans 1 3 10 ans 1 4 my programm gave for 6 ans 0 4 for 10 0 5 after changes about a1 = 0 AC.So a1 Not equal 0 It must be added to the statement. It IS in the statement: "Your program is to output two POSITIVE integers A and P separated with a space..." |
| is there a polynomial solution to the problem ? | Konstantin | 1500. Pass Licenses | 12 Apr 2019 19:01 | 1 |
|
| Output Limit Exceeded #12 hint | Cebotari Vladislav | 1074. Very Short Problem | 12 Apr 2019 17:22 | 1 |
Take care of new line endings and make sure that the second line is always read properly. In my case the problem was that the second line was skipped because of wrong transition in my FSM so the wrong line was read into N, so it printed more characters after the point than it should. |
| Python. From WA1 to WA10, why WA10 ?? =(( | Mapu | 1226. esreveR redrO | 11 Apr 2019 01:32 | 1 |
from sys import stdin s = "" for line in stdin: for i in line: if 'A' <= i <= 'Z' or 'a' <= i <= 'z': s += i elif 9 < ord(i) < 14 or ord(i) < 0: # <-- this elif about non-printable print(s[::-1], end = '\n') # characters end of lines, files, etc. s = "" else: print(s[::-1] + i, end = '') s = "" print(s, end = '') |
| If you have WA #5 | german_goncharov | 1025. Democracy in Danger | 10 Apr 2019 20:36 | 1 |
You can use for test this numbers: 9 3 11 7 9 13 25 7 11 5 The answer is 18. --- Hint: Use sort? Try to think about what you sort |
| No really! Can you give Input and Output Test3 ??? | lomobit | 1818. Fair Fishermen | 9 Apr 2019 23:03 | 1 |
Please write Input and Output Test3 Edited by author 09.04.2019 23:05 |
| Accepted !!! =) | Jairls18 | 1025. Democracy in Danger | 7 Apr 2019 15:05 | 5 |
[code deleted] Edited by moderator 20.11.2019 00:02 I understood the solution. But I didn't understand the logic, why 1 is added before dividing the number? Thank you. Because to get vote from i group you need to have more than a half votes. For example, If 7 you have 7 guys in a group, you need to have 4 votes. 7/2 = 3 3+1 = 4 Why you sorted the array?. Is there any need of it?. |
| If Wa7. | Hrayr | 1786. Sandro's Biography | 5 Apr 2019 14:19 | 4 |
Try this test : tTTTTT ans:60 Edited by author 27.06.2011 02:14 Thanks, that really helped :D Thanks for help. The problem were in checking substrings with length less then 6. |