| Show all threads Hide all threads Show all messages Hide all messages |
| Just disgusting problem statements wording | Vedernikoff 'Goryinyich' Sergey (HSE: АОП) | 2165. Cake Cutter | 16 Aug 2023 00:11 | 1 |
I'm native Russian language speaker, but I really cannot understand what is required in the problem: "Поскольку Вадим не любит сладкое, в конце он выберет себе самый маленький по площади кусочек, однако он не хочет, чтобы кто-то это заметил. Для этого современному обер-форшнейдеру нужно подобрать такой способ элегантно разделить торт, чтобы часть, которая достанется ему, была наибольшего размера." He doesn't like sweets, so he takes part of minimal size, but he wants to maximize size at the same time. WTF, where is the logic here, what does author want from us - to find maximin over all cuts, or something else? |
| If you get WA 2 | autonomous | 1149. Sinus Dances | 15 Aug 2023 15:07 | 1 |
My program worked correctly on N in 1 to 9, and incorrectly on numbers greater than 9 (error in string concatenation). I kept getting an error on test 2 until I fixed the error. Apparently, in test 2, the input is a number greater than 10. Try this test: in: 11 out: ((((((((((sin(1)+11)sin(1-sin(2))+10)sin(1-sin(2+sin(3)))+9)sin(1-sin(2+sin(3-sin(4))))+8)sin(1-sin(2+sin(3-sin(4+sin(5)))))+7)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6))))))+6)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7)))))))+5)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7-sin(8))))))))+4)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7-sin(8+sin(9)))))))))+3)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7-sin(8+sin(9-sin(10))))))))))+2)sin(1-sin(2+sin(3-sin(4+sin(5-sin(6+sin(7-sin(8+sin(9-sin(10+sin(11)))))))))))+1 |
| WA#7 | Parassat Kyzyrkanov | 1103. Pencils and Circles | 14 Aug 2023 20:03 | 1 |
WA#7 Parassat Kyzyrkanov 14 Aug 2023 20:03 I made all my coordinate variables double, so I had a bug when I printed it out :( cout << (int)x << ' ' << int(y) << '\n'; -> fixed my bug |
| [ADMIN] Seems Server used HDD disk, Can you replace it to more fastest SSD ? ))) | coder | 2161. Mount & Blade | 8 Aug 2023 13:48 | 1 |
I have tested, and 500 kbytes input reads about 20-30 ms in acm.timus.ru system. It equal to ~25 Mbytes/s speed read. Seems there installed HDD disk. There any plan to use fastest SSD disks in server side ? Many problems solutions actually took many times for accessing input/output, not calculating actual algorithm. |
| WA22 | andreyDagger`~ | 1691. Algorithm Complexity | 7 Aug 2023 00:30 | 1 |
WA22 andreyDagger`~ 7 Aug 2023 00:30 6 11 1 1 1 2 1 3 3 1 3 2 2 6 2 4 3 5 5 5 5 4 4 6 6 4 Answer: 0 |
| Here's the equation | Ajay Subhash Jadhav | 1925. British Scientists Save the World | 5 Aug 2023 23:21 | 1 |
Just prepare the equation as described and solve for c=x, display_sum + k - (entered_sum + x) == (n + 1) * 2; display_sum + k - entered_sum - x = 2 * n + 2; x = -2 * n - 2 + display_sum + k - entered_sum; if x < 0 then Big Bang! |
| WA3 | 👑TIMOFEY👑`~ | 1191. Catch the thief! | 5 Aug 2023 17:45 | 1 |
WA3 👑TIMOFEY👑`~ 5 Aug 2023 17:45 |
| WA9 | 👑TIMOFEY👑`~ | 1191. Catch the thief! | 5 Aug 2023 17:31 | 1 |
WA9 👑TIMOFEY👑`~ 5 Aug 2023 17:31 |
| Hint for WA5 | Keworker `~ | 1191. Catch the thief! | 4 Aug 2023 21:34 | 1 |
If you get WA5, check case, where policeman catch the thief until first tram arrive. |
| TLE 7 | 👑TIMOFEY👑`~ | 1107. Warehouse Problem | 4 Aug 2023 11:43 | 1 |
TLE 7 👑TIMOFEY👑`~ 4 Aug 2023 11:43 I tried many times and I got TLE7, on code with cin cout, and the visual studio compiler. BUT with this input only 5 million numbers. It should not give TLE (I used ios and tie), which is more strange in g++, ABSOLUTELY the same code gives AC, with a time of 0.187, the code is MORE THAN 5 TIMES FASTER! I understand that g++ and visual differ a lot in terms of compiler settings, but to have such a big difference, I'm just shocked. I am very interested to find out why this is happening. Usually visual is faster, it is very interesting to find out which settings and in which cases make the compiler faster. |
| wa3 | 👑TIMOFEY👑`~ | 1107. Warehouse Problem | 4 Aug 2023 11:29 | 1 |
wa3 👑TIMOFEY👑`~ 4 Aug 2023 11:29 you don't understand what your code does at all try to think more |
| simple iterative solution C++ | Ammar Hammoud | 1607. Taxi | 3 Aug 2023 21:22 | 1 |
#include <bits/stdc++.h> using namespace std; #define go ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); typedef long long ll; int main() { go int a, b, c, d; cin >> a >> b >> c >> d; while(a < c){ if(a+b > c) break; a += b; c -= d; } cout << max(a, c);
return 0; } |
| Simulation Time Complexity | taodaling | 1777. Anindilyakwa | 3 Aug 2023 13:18 | 1 |
Let's assume delta is the difference between the nearest number in our set. Then we can approve delta will decrease by half (at least) in every 2 rounds. So the simulation will be executed at most 2log 10^18 time, it's about 120. |
| Very interesting problem, thanks! | coder | 2049. Chemistry | 1 Aug 2023 17:26 | 1 |
k = 1 k = 2^m for some m k = n k = n-1 cases are enough for solve problem :) |
| C++ accepted | Evgeny | 1225. Flags | 31 Jul 2023 19:58 | 1 |
#include <iostream> #include <vector> using namespace std; int main() { int N = 45; int M; cin >> M; vector <long long> a(N+2); a[0] = 2, a[1] = 2;
for (int i = 0; i < N; i++) { a[i+2] = (a[i+1] + a[i]); }
//Fibonacci sequence
// F0 = 2; // F1 = 2; // Fn = Fn-1 + Fn-2 cout << a[M-1]; return 0; } |
| New problems | Sandro (USU) | | 27 Jul 2023 17:36 | 1 |
Problems 2158-2173 from Ural School Programming Contests 2021 and 2022 were added to the Problem set. |
| Who can throw suitable tests which can not work? | Andrey | 1997. Those are not the droids you're looking for | 26 Jul 2023 20:53 | 2 |
This is my tests: <Test 1> input: 10 5 8 1 0 2 0 3 1 4 1 5 0 6 0 15 1 16 1 output: No reason 5 15 6 16 1 3 2 4 <Test 2> input: 11 1 18 1 0 2 0 3 0 4 0 6 0 7 0 8 0 9 0 11 0 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 output: Liar <Test 3> input: 4 2 8 7 0 8 0 9 0 19 1 20 0 21 1 22 1 23 1 output: No reason 20 21 7 19 8 23 9 22 Edited by author 29.03.2023 21:01 Your output for test 2 is incorrect. My AC solution gives: No reason 1 13 2 14 3 15 4 16 6 17 7 18 8 19 9 20 11 12 |
| Hint: use DP | Raphael Osipov | 1353. Milliard Vasya's Function | 25 Jul 2023 20:54 | 1 |
try think like dp[length of string][sum of string] = count of numbers, answer is dp[9][s]. |
| If you got WA#3 or WA#16 | <<~Kossack~>> | 1600. Airport | 24 Jul 2023 18:06 | 9 |
ds:=sqr(b)-a*c; the checking must look like this if ds+0.000000000001>=0 then ... Also when I calculated square roots for a*t^2 + 2*b*t + c = 0 as t1,2 = (-b +- sqrt(b^2 - a*c)) / a I had wa3. When I use b = 2.0 * b t1,2 = (-b +- sqrt(b^2 - 4.0*a*c)) / (2.0*a) I got AC. It is very curiously... I has WA#3. Even, i use check ds+0.000000000001>=0. I don't understand what's wrong. :( Can you talk me what in test 3? If ds passes this test, it may be less than zero. so, if it is less than zero, reset it to zero. otherwise, sqrt won't perform as expected. Also check for possible -0.000 replies (that happens in printf("%.3lf") when number is negative, but becomes zero after round-up). Some checkers do not like that. Is negative time a possible answer? :( There is curious fact, that you can get AC with eps = .1! Most important do not forget about: If ds passes this test, it may be less than zero. so, if it is less than zero, reset it to zero. otherwise, sqrt won't perform as expected. I also checked abs(ds) < eps , then t = -b/(2*a) Without it, it was WA3 |
| WA 14 | anotherworld | 1325. Dirt | 24 Jul 2023 00:15 | 1 |
WA 14 anotherworld 24 Jul 2023 00:15 THIS TEST 6 5 1 3 6 3 11112 22221 11112 22212 21112 22222 ANS:7 1 |