| Show all threads Hide all threads Show all messages Hide all messages |
| if WA 4 | Lemmiwinks | 1020. Rope | 20 Aug 2021 20:42 | 2 |
if WA 4 Lemmiwinks 24 Jun 2021 20:22 use the formula sqrt(abs(x1 - x2)**2 + abs(y1 - y2)**2) not abs(x1 - x2) + abs(y1 - y2) |
| WA2 | yuety25 | 1590. Bacon’s Cipher | 20 Aug 2021 16:26 | 1 |
WA2 yuety25 20 Aug 2021 16:26 Please give me some tests! |
| an easy method | Celebrate | 1395. Pascal vs. C++. Version 2 | 20 Aug 2021 13:16 | 1 |
(Please forgive me for my poor English.) First,use Hash to record ai Then,enumerate i,j as the first and the second items in the arithmetic sequence.check if 2*a[i]-a[j] exists.If it exists,we stop it immediately because the arithmetic sequence has been found.Otherwise,we find the arithmetic as brute force and mark the longest arithmetic sequence. At last,it's easy to restore the arithmetic sequence. So we can solve it in O(n^2). Edited by author 20.08.2021 13:43 |
| WA13 | Михаил | 2141. Sasha Vilkin | 18 Aug 2021 14:56 | 2 |
WA13 Михаил 30 Oct 2019 13:02 Re: WA13 Dmitri Belous 18 Aug 2021 14:56 I hope, the following will help. I've found it using a random generator and a brute force checker. 7 2 -5 -4 -1 -1 -5 5 Answer: 13 |
| To admin: please fix the problem statement. | 198808xc | 1544. Classmates 3 | 18 Aug 2021 06:36 | 2 |
In this problem, all the operations should be done on the SAME computer, but I could NOT understand this from the statement, until I read the forum. This problem is quite easy: simple bruteforce could AC in short time, but I think this bug in statement have made this problem SEEMS hard (only 100+ ACed now). Please, fix it. I think you can do on every computers.But doing on the same computer is the best solution. Maybe. Sorry my bad English.:) |
| WA #38 | Furkat Ahrolov | 2102. Michael and Cryptography | 15 Aug 2021 16:40 | 1 |
WA #38 Furkat Ahrolov 15 Aug 2021 16:40 |
| Stupid mistake | andreyDagger`~ | 1348. Goat in the Garden 2 | 15 Aug 2021 11:04 | 1 |
Damn, i used min(xa, xb) <= x_h <= max(xa, xb) and got WA5, then I wrote min(xa, xb) <= x_h && x_h <= max(xa, xb) and got AC |
| Nice problem | springWaltz | 1037. Memory Management | 14 Aug 2021 21:17 | 2 |
Similar to page scheduling. Used two sets to simulate the process. :) |
| What is test 9? | springWaltz | 1058. Chocolate | 13 Aug 2021 17:35 | 1 |
Getting WA #9. My solution is bruteforce after dividing the lines |
| Help me! I got WA#3 | Kurpilyansky Eugene (USU) | 1337. Bureaucracy | 13 Aug 2021 07:18 | 4 |
give me some tests thanks. INPUT 1 2 1 0 1 1 0 1 0 OUTPUT 0 is correct? My AC program says 0 is correct!) |
| Simple hint about solution. Make sure you spend at least 3 days on your solution, before seeing this. | LaVuna [KHNURE] | 1301. Cube in Labyrinth | 13 Aug 2021 02:36 | 1 |
The problem can be solved using brute force solution |
| SPOILER. Hint | andreyDagger`~ | 1794. Masterpieces of World Architecture | 12 Aug 2021 22:37 | 1 |
Make difference array, where dif[i] = i - a[i] |
| If you have WA or TLE on #8 | eusebiuu | 1156. Two Rounds | 12 Aug 2021 16:40 | 1 |
Try 7 10 1 2 1 3 1 4 5 6 5 7 8 9 8 10 8 11 12 13 12 14 This test changed my solution totally. Hope it helps you:) |
| a question | Al.Cash | 1199. Mouse | 12 Aug 2021 06:42 | 4 |
Can the mouse go under the furniture? I mean, can it's way cross the polygons? I didn't solve it. But I think mouse CAN'T cross the polygon. If i think that mouse can go under furniture get WA3. If can't, get WA10 at the moment. So probably mouse can't go under furniture. I think it can't. I got WA3 if it can go under the furniture. But I got AC if it can't. Sorry,my English is very bad. |
| Another approach | andreyDagger`~ | 1134. Cards | 11 Aug 2021 18:10 | 1 |
Actually, you can solve it as a graph problem, where numbers 0, 1, ..., n are vertices, which connected like: 0-1, 1-2, ... |
| What is correct approach to this problem? | Zergatul | 2127. Determinant of a Graph | 9 Aug 2021 19:16 | 1 |
I was able to solve it just by computing matrix determinant. Nothing to do with graphs, just taking advantage of matrix sparsity. |
| Some help if you have WA | eusebiuu | 1513. Lemon Tale | 8 Aug 2021 13:09 | 1 |
WA #3: 1 1 -> 2 WA #5: 2 1 -> 3 WA #7: 5 3 -> 29 WA #8: 6 5 -> 63 WA #9: 5 1 -> 13 |
| WA 2 | Otrebus | 1062. Triathlon | 7 Aug 2021 23:03 | 1 |
WA 2 Otrebus 7 Aug 2021 23:03 This is the case of a particularly small competition! |
| starting point a is a station but you go by feet | Norbert Nolte | 1205. By the Underground or by Foot? | 7 Aug 2021 07:43 | 4 |
If the starting point A is a station but you go by feet, is the station a visited station. For example, what is the solution for the following: 100 101 3 0 0 0 10 1 0 1 2 2 3 0 0 0 0 1 0 |
| If you have TL | gaporf | 1198. Jobbery | 7 Aug 2021 06:15 | 3 |
If you have TL on test 21, 49 or 50 you should use gets. I get AC with 0.3 s. I was getting TL21, but once I've added "ios_base::sync_with_stdio(false)", I got AC |