| Show all threads Hide all threads Show all messages Hide all messages |
| WA test 24.... HELP!! | vtalgo25_zakharchenko_408648 | 1604. Country of Fools | 25 Mar 2025 05:22 | 2 |
|
| What's wrong? Runtime error | gkd002 | 2066. Simple Expression | 24 Mar 2025 21:05 | 2 |
a, b, c = map(int, input().split(" ")) a = int(a) b = int(b) c = int(c) lst = [a, b, c] lst.sort() d = lst[0]-lst[1]*lst[2] e = lst[0]-lst[1]-lst[2] if d<e: min = d else: min = e print(min) You have a 3-line input,but you entered everything in one line |
| WA 5 | ~'Yamca`~ | 1849. Rabbit Hunt 2 | 24 Mar 2025 00:35 | 1 |
WA 5 ~'Yamca`~ 24 Mar 2025 00:35 this test may help you: 4 0 0 1 0 2 0 3 0 2 1 2 1 0 1 0 1 0 1 19 1 0 ans: 2 0 |
| WA 2 | ~'Yamca`~ | 1849. Rabbit Hunt 2 | 24 Mar 2025 00:33 | 1 |
WA 2 ~'Yamca`~ 24 Mar 2025 00:33 "If there are several such propositions, output the one with the maximal number." |
| WA 52 | ~'Yamca`~ | 1717. Eligibility Rules | 23 Mar 2025 21:15 | 1 |
WA 52 ~'Yamca`~ 23 Mar 2025 21:15 1500 1 1 -1000000000 1 1 -1000000000 1 1 -1000000000 1 1 -1000000000 1 1 -1000000000 1 1 -1000000000 1 1 -1000000000 1 1 -1000000000 ..... ans: 1 1 1 1 |
| WA 22 | ~'Yamca`~ | 1455. Freedom of Speech | 21 Mar 2025 23:01 | 1 |
WA 22 ~'Yamca`~ 21 Mar 2025 23:01 4 ab ba aba bab answer: ababa |
| tests generator | LeTim | 1369. Cockroach Race | 20 Mar 2025 11:52 | 1 |
Here is a simple "bad" tests generator on C++ to test your solutions (through comparing answers with brutforce solution): const double PI = 3.14159265358979323846; mt19937 rnd; struct Point { double x, y; }; double dist(const Point& a, const Point& b) { return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y)); } bool check(const vector<Point>& points, const Point& p) { for (const auto& p2 : points) if (dist(p, p2) < 1e-3) return 0; return 1; } pair<vector<Point>, vector<Point>> gen_bad_test(int m = 100000, int n = 10000, double R = 10000, double r = 10) { vector<Point> cockroaches, sweets; cockroaches.reserve(m); sweets.reserve(n); while (m--) { Point p; do { double a = uniform_real_distribution<double>(0, 2*PI)(rnd); p = {cos(a) * R, sin(a) * R}; } while (!check(cockroaches, p)); cockroaches.emplace_back(p); } while (n--) { Point p; do { double a = uniform_real_distribution<double>(0, 2*PI)(rnd); double d = sqrt(uniform_real_distribution<double>(0, 1)(rnd)) * r; p = {cos(a) * d, sin(a) * d}; } while (!check(cockroaches, p)); sweets.emplace_back(p); } return {cockroaches, sweets}; } This generator uniformly distributes points-cockroaches on a circle of radius R and points-sweets inside a circle of radius r. And another generator that just distributes all points within [-MAX; MAX] along both axes: pair<vector<Point>, vector<Point>> gen_rand_test(int m = 100000, int n = 10000, double MAX = 10000) { vector<Point> cockroaches, sweets; cockroaches.reserve(m); sweets.reserve(n); auto urd = uniform_real_distribution<double>(-MAX, MAX); while (m--) { Point p; do p.x = urd(rnd), p.y = urd(rnd); while (!check(cockroaches, p)); cockroaches.emplace_back(p); } while (n--) { Point p; do p.x = urd(rnd), p.y = urd(rnd); while (!check(sweets, p)); sweets.emplace_back(p); } return {cockroaches, sweets}; } I just got AC for this problem and these two generators greatly helped me debug the solution revealing bugs and precision issues |
| Wa 13 | Hououin`~`Kyouma | 2191. Piecewise Linear Functions | 19 Mar 2025 08:24 | 4 |
Wa 13 Hououin`~`Kyouma 28 Jan 2025 23:26 Is this a rounding issue in the output? Re: Wa 13 Lyashko A (TNU/CFU) 19 Mar 2025 01:24 I had WA13 when i was printing 6 digits. More digits are needed. Thank you, I have AC now. In my implementation, it took 9 digits, but you can output much more just in case. Edited by author 19.03.2025 08:24 |
| WA 3 | ~'Yamca`~ | 1951. Complex Root | 17 Mar 2025 23:33 | 1 |
WA 3 ~'Yamca`~ 17 Mar 2025 23:33 |
| WA 4 | tima20072007 | 1881. Long problem statement | 16 Mar 2025 23:00 | 2 |
WA 4 tima20072007 4 Apr 2024 21:45 Не вздумайте решать задачу, оно того не стоит. Re: WA 4 Andre Marin C# 16 Mar 2025 23:00 я именно за этим и пришел сюда |
| WA2 | andreyDagger`~ | 1882. Old Nokia | 16 Mar 2025 22:55 | 3 |
WA2 andreyDagger`~ 13 May 2023 15:27 Re: WA2 ~'Yamca`~ 16 Mar 2025 18:56 Re: WA2 andreyDagger`~ 16 Mar 2025 22:55 |
| WA 3 | ~'Yamca`~ | 1940. Not So Simple Years | 13 Mar 2025 18:10 | 1 |
WA 3 ~'Yamca`~ 13 Mar 2025 18:10 Don't forget to add primes <= k |
| cool problem, but overrated | ~'Yamca`~ | 2195. Binary Trees | 12 Mar 2025 20:16 | 1 |
|
| PLEASE_Python Time limit exceeded | Alice | 1196. History Exam | 11 Mar 2025 17:31 | 1 |
how can it be improved???? n = int(input()) sp = [] a = [] c = 0 for i in range(n): sp.append(int(input())) m = int(input()) for i in range(m): x = int(input()) if x in sp: c += 1 print(c) |
| if a = 0 and b = 0?? | gooooooogol | 1420. Integer-Valued Complex Division | 11 Mar 2025 10:55 | 2 |
if a = 0 and b = 0 => r = 0 and q every complex number => count solation equation = infinity |
| easy and overrated problem | ~'Yamca`~ | 1311. Stable Construction | 11 Mar 2025 00:59 | 1 |
|
| Is it possible to reset progress? | sm_programmer | | 10 Mar 2025 02:05 | 2 |
I would like to know if I can reset my progress here. I want to start afresh, but as I don't see a way to delete accounts, I thought that, at least, resetting my progress would be enough, but I can't do that either! Thanks in advance for your help! Edited by author 14.02.2025 08:40 You can request deleting your account by writing an email to support |
| correct code | Vlad | 1639. Chocolate 2 | 8 Mar 2025 12:26 | 3 |
int main(){ int x, y; cin >> x >> y; if ((x*y-1)%2==1) cout << "[:=[first]"; else cout << "[second]=:]"; return 0; } #include <iostream> using namespace std; int main () { int m,n; cin>>m>>n; if((m*n)%2==0)cout<<"[:=[first]"; else cout<<"[second]=:]"; return 0; } |
| easy bfs | 👑TIMOFEY👑`~ | 1976. Game Optimization | 7 Mar 2025 12:34 | 1 |
|
| WA19 | 👑TIMOFEY👑`~ | 1703. Robotic Arm | 5 Mar 2025 16:43 | 1 |
WA19 👑TIMOFEY👑`~ 5 Mar 2025 16:43 |