| Show all threads Hide all threads Show all messages Hide all messages |
| If you get TLE | DarksideCoder | 1447. Portkey Network | 7 Apr 2022 16:39 | 1 |
Be careful. It will play a circle when your Eps<=1e-10. Because Cpp's double is unable to stop the Binary Search. Sorry for my poor Eng |
| Big test if you've got TLE! | Petr Huggy (Pskov) | 1434. Buses in Vasyuki | 6 Apr 2022 11:52 | 2 |
Here is test generator that helped me beat TLE! ------------------- #include <stdio.h> void test1() { FILE* stream = freopen ("BusRoutes.big", "w", stdout); const int n = 1000; const int endp = 100000; int cur = endp; printf ("%d 100000\n", n); for (int i = 0; i < n; ++i) { int cnt = (cur == 100) ? 100 : 200; printf ("%d ", cnt); for (int j = 0; j < cnt; ++j) { printf ("%d ", cur--); } printf ("\n"); cur += 100; } printf ("1 %d\n", endp); fclose (stream); } int main() { test1(); return 0; } ------------------- It didn't work Although my solution finish in the time limit,it get TLE in the test32 |
| I have optimized the problem,but it took me more time! | 我是中国人 | 1319. Hotel | 6 Apr 2022 10:47 | 3 |
........................... |
| why is wrong? | Crisfigueroa | 1409. Two Gangsters | 5 Apr 2022 07:50 | 1 |
#include <stdio.h> #include <stdlib.h> int main(){ int harry,larry,res,res1,c; scanf("%d %d",&harry,&larry); c=(harry+larry)-1; if(c<=10){ res1=10-harry; res=10-larry; printf("%d %d \n", res1,res); }else
return 0; } |
| for the WA14 boys | Grandmaster | 1272. Non-Yekaterinburg Subway | 4 Apr 2022 15:11 | 1 |
4 3 2 1 2 2 3 2 4 3 4 1 4 correct answer is 0. |
| TO ADMINS: Weak tests! 2 accepted solutions give different answers for this test | † SiriuS † | 1912. Titan Ruins: Passing through Walls | 2 Apr 2022 14:26 | 2 |
6 12 +.+-+-+-+-+-+-+-+-+-+-+.+ | | . . . . . . . . . | | +.+.+-+-+-+-+-+-+-+-+.+.+ | | | . . . . . . . | | | +.+.+.+-+-+-+-+-+-+.+.+.+ | | | | . . . . | | . . | +.+.+.+.+.+.+.+.+.+.+-+-+ | . . | . . . . | . | . | +.+.+-+.+.+.+.+.+.+.+.+.+ | | | . . . . . | . | . | +.+.+.+.+.+.+.+.+.+.+.+.+ |1|2| . . . . . | . | . | +-+-+.+.+.+.+.+.+.+.+.+.+ According to the problem statement, right answer is 37. But the solution which returns 40 also got AC. So is the answer 40 or 37? |
| #WA4 | Alexandr | 1047. Simple Calculations | 30 Mar 2022 01:20 | 2 |
#WA4 Alexandr 30 Mar 2022 01:14 I had WA2 with std::cout and round|trunc|floor functions. Then I used printf("%.2f", result) and got WA4. What's going on with output requirements? WA2 and WA4 happened when I used int64_t as type for main calculations. Then I changed to double and passed tests. ?!?! |
| WA#16 | Alexandr | 1303. Minimal Coverage | 29 Mar 2022 23:37 | 1 |
WA#16 Alexandr 29 Mar 2022 23:37 Hey, this is the test 16 - it was a long path to get there. What can possibly go wrong? |
| WA#12 | pss | 1303. Minimal Coverage | 28 Mar 2022 00:52 | 3 |
WA#12 pss 20 Mar 2007 13:49 I don't understand why my prog don't work Can you give me some data or advice Edited by author 20.03.2007 14:04 Edited by author 20.03.2007 14:04 Re: WA#12 Tyo Dmitry [Tomsk PU] 27 Jul 2012 16:05 10 0 9 0 0 I had "Output limit exceeded" on this test, but it actually was WA12. It works. Thanks man, appreciate it! <3 |
| Help with DP solution | Matei Chirvasa | 1741. Communication Fiend | 26 Mar 2022 22:15 | 1 |
Hello, I've managed to solve this problem using two graphs, I'm not sure where I could use dp to improve my solution. My solve only uses 0.015s with 1456kb. Could you give me some hints as to where dp was supposed to be used in the solution? |
| #WA 8. Reasons. | vtalgo17_EN | 1444. Elephpotamus | 26 Mar 2022 17:25 | 2 |
Please, give me some test! Or, may be, give some advices about this test. if you are dividing something by something, make sure to account for the case where, due to precision double,dividing of two different points gives the same result |
| WA 13 | hotguy6pack | 1303. Minimal Coverage | 25 Mar 2022 08:19 | 3 |
WA 13 hotguy6pack 24 Mar 2022 01:41 i have tried all cases and it seems correct but cant pass test 13. Can someone help me what is test 13??? Английский я знаю плохо, поэтому sorry:) У меня тоже был WA 12. Попробуй тест: 1 49999 50000 0 0 TY so much <3 :(( Английский я знаю плохо, поэтому sorry:) У меня тоже был WA 12. Попробуй тест: 1 49999 50000 0 0 Edited by author 25.03.2022 08:26 |
| what is wrong with the solution??? С++ | abram fedor | 1935. Tears of Drowned | 25 Mar 2022 06:29 | 1 |
#include <iostream> using namespace std; int main() { int n,c; cin>>n; int a[n]; for(int i=0;i<n;i++) cin>>a[i]; for(int i=0;i<n;i++){ for(int j=0;j<n;j++) if(a[i]<a[j]){c=a[i];a[i]=a[j];a[j]=c;} } c=a[n-1]; for(int i=0;i<n;i++) c=c+a[i]; cout<<c; return 0; } Edited by author 25.03.2022 06:30 |
| 05580 с++ | abram fedor | 2100. Wedding Dinner | 25 Mar 2022 06:13 | 1 |
#include <iostream> using namespace std; int main() { int n, x=2; cin>>n; x += n; while(n--) { string s; cin >> s; for(int i=0; i<s.size(); i++) { if(s[i]=='+') { x++; } } } if(x!=13) cout << 100*x<< endl; else cout << 100*(x+1) << endl;
return 0; } Edited by author 25.03.2022 06:15 Edited by author 25.03.2022 06:15 |
| Test #11 | Danlo | 1494. Monobilliards | 23 Mar 2022 23:50 | 2 |
If you get WA on test #11, try this test: 4 1 3 4 2 Not a proof Thanks man, I appreciate it |
| WA2 | Kirill~ | 1982. Electrification Plan | 23 Mar 2022 22:37 | 1 |
WA2 Kirill~ 23 Mar 2022 22:37 Check this: if (!used[j] and min_e[j] < min_e[v] and j!=v) { Edited by author 23.03.2022 22:57 |
| Test 4 C# HELP PLEASE! | Mokhova Anastasiya | 1258. Pool | 22 Mar 2022 22:30 | 1 |
The C# solution fails test #4. Error: Runtime error (access violation). But in C++, exactly the same solution passed. Does test 4 in this problem contain correct data? |
| If WA8, here's hint | wangbicheng1 | 1184. Cable Master | 21 Mar 2022 23:57 | 2 |
Notice that the number of pieces you cut the cables needn't be precisely equal to k. Just >=k is OK. |
| Hint | Kirill~ | 1295. Crazy Notions | 21 Mar 2022 17:48 | 1 |
Hint Kirill~ 21 Mar 2022 17:48 It' strange task. My solution is SO STUPID. Watch at 2 last numbers of (k,n), where k = {1,2,3,4} Edited by author 21.03.2022 17:49 |
| Hints. Many hints for desperate people | Kirill~ | 2018. The Debut Album | 20 Mar 2022 22:02 | 1 |
Hint 1: How many sequences end with '1' or '2' Hint 2: s_a[0] = 1; s_b[0] = 1; Hint 3: s_a[i+j] = (s_a[i+j] + s_b[i])%inf; Where i+j <=n and i<n and j<= a Repeat this with s_b Good luck! :) |