| Show all threads Hide all threads Show all messages Hide all messages |
| WA6 | Dmitry | 2141. Sasha Vilkin | 22 Jul 2024 17:53 | 1 |
WA6 Dmitry 22 Jul 2024 17:53 Please give me some test that can help me |
| WA 18: wrong order of points in polygone | Alex_Gu | 1215. Exactness of Projectile Hit | 22 Jul 2024 02:55 | 2 |
The test contents points entered clockwise, which doesn't respond the condition. I succeed passing the test only after applied an algo, which is not sesitive to the order of points in polygone Edited by author 29.04.2024 19:57 Edited by author 29.04.2024 19:57 For me, WA 18 fixed with replacting float to double. magic :/ |
| If WA6 | zerumi | 1131. Copying | 21 Jul 2024 23:42 | 1 |
If WA6 zerumi 21 Jul 2024 23:42 Try not to use double, probably there is something like ceil(log(n)) = ceil(1.000000000000000000000001) = 2.0 Also in test 6 N is greater than 1.000.000. I used Int and Float data types and got AC |
| why I got wa? | 👑TIMOFEY👑`~ | 1173. Lazy Snail | 21 Jul 2024 09:22 | 1 |
Type > Point =record > x,y,d :real; > ID :Integer; > end; > Var > a :array[0..1000] of point; > n,i :integer; > > function partition(first,last:integer):integer; > Var > t :point; > i,j :integer; > x :real; > begin > i:=first-1; > j:=last+1; > x:=a[first].d; > while true do > begin > repeat inc(i); > until a[i].d<=x; > repeat dec(j); > until a[j].d>=x; > if i<j then begin > t:=a[i]; a[i]:=a[j]; a[j]:=t; end > else begin > partition:=j; exit; end; > end; > end; > > Procedure qsort(first,last:integer); > Var > w :integer; > begin > if first<last then > begin > w:=partition(first,last); > qsort(first,w); > qsort(w+1,last); > end; > end; > > Function ATG(x:integer):real; > Var > dx,dy,k :real; > begin > dx:=a[x].x-a[0].x; > dy:=a[x].y-a[0].y; > if dx=0 then > k:=90 > else > k:=arctan(dy/dx)/pi*180; > if (k<0) or ((k=0) and (dx<0)) then k:=k+180; > if dy<0 then k:=k+180; > atg:=k; > end; > > begin > readln(a[0].x,a[0].y); > readln(n); > for i:=1 to n do > begin > readln(a[i].x,a[i].y,a[i].ID); > a[i].d:=ATG(i); > end; > qsort(1,n); > writeln(0); > for i:=1 to n do > writeln(a[i].Id); > writeln(0); > end. |
| wa 20, 26 | 👑TIMOFEY👑`~ | 1647. Divide an Island! | 19 Jul 2024 13:19 | 1 |
|
| WA 27 | 👑TIMOFEY👑`~ | 1773. Metro to Every Home | 19 Jul 2024 11:48 | 1 |
WA 27 👑TIMOFEY👑`~ 19 Jul 2024 11:48 |
| RE 13 | 👑TIMOFEY👑`~ | 1773. Metro to Every Home | 19 Jul 2024 11:48 | 1 |
RE 13 👑TIMOFEY👑`~ 19 Jul 2024 11:48 |
| AC with Pollard's rho algorithm | Keworker `~ | 2102. Michael and Cryptography | 18 Jul 2024 16:32 | 3 |
I pass this problem with Sieve of Eratosthenes, but i think solution with Pollard's rho algorithm is funnier, and wrote it too. If you cant pass it with this algo just use all prime modules from 1'000'000'007 to 1'000'001'393. Did you check small dividers? ro pollard works very poorly with them If TL let me check all with O(sqrt(n)), I do it. I invoke rho pollard only if can not pass test with O(sqrt(n)) |
| wa29 | 👑TIMOFEY👑`~ | 1872. Spacious Office | 18 Jul 2024 14:11 | 1 |
wa29 👑TIMOFEY👑`~ 18 Jul 2024 14:11 you print Ask Shiftman for help. once again, although the correct answer is Perfect |
| wa 4 | 👑TIMOFEY👑`~ | 1633. Hippogriffs | 18 Jul 2024 13:49 | 1 |
wa 4 👑TIMOFEY👑`~ 18 Jul 2024 13:49 |
| easy bfs | 👑TIMOFEY👑`~ | 1235. Cricket Field | 18 Jul 2024 13:19 | 1 |
|
| wa 25 wa 28 | 👑TIMOFEY👑`~ | 1285. Thread in a Hyperspace | 17 Jul 2024 20:05 | 1 |
super incomprehensible, in general the tests are about some kind of accuracy, you need to make 100 parcels and try different epsilons everywhere to pass these tests, it pissed me off |
| wa21 | 👑TIMOFEY👑`~ | 1285. Thread in a Hyperspace | 17 Jul 2024 19:47 | 1 |
wa21 👑TIMOFEY👑`~ 17 Jul 2024 19:47 hypercircle does not interfere with the thread |
| easy bfs | 👑TIMOFEY👑 | 1338. Automobiles | 17 Jul 2024 16:53 | 2 |
Yeah, but i hate bfs on grid |
| wa 4 | 👑TIMOFEY👑`~ | 1932. The Secret of Identifier | 17 Jul 2024 13:58 | 1 |
wa 4 👑TIMOFEY👑`~ 17 Jul 2024 13:58 |
| wa5 | 👑TIMOFEY👑`~ | 1875. Angry Birds | 17 Jul 2024 11:40 | 1 |
wa5 👑TIMOFEY👑`~ 17 Jul 2024 11:40 dont forgot about solo points |
| One test for you | FaNato4kA_TiMoFeYa | 1767. The House of Doctor Dee | 17 Jul 2024 11:14 | 1 |
Try this one 0 0 1 1 1 0 2 -1 Ans: 0 |
| If you have WA#8 | Keworker `~ | 1753. Bookshelf | 15 Jul 2024 14:50 | 1 |
Try: 101 203 1000 Or: 1 3 1000 |
| WA6 | Mortus | 1895. Steaks on Board | 15 Jul 2024 13:42 | 1 |
WA6 Mortus 15 Jul 2024 13:42 |
| Add test (2 admins) | Keworker `~ | 1927. Herbs and Magic | 15 Jul 2024 12:12 | 1 |
I think this test should break some AC solutions: 443 -39 457 33 386 -773 561 127 Correct answer is -1, but I think some AC solutions can print 0 |