| Show all threads Hide all threads Show all messages Hide all messages |
| What is test 35? | Egor | 1503. Polynomial | 6 Mar 2023 02:52 | 1 |
What in 35 test, I always get WA Edited by author 06.03.2023 04:44 Edited by author 06.03.2023 04:50 |
| Why this is wrong ans in visual C? | Iftekhar | 1209. 1, 10, 100, 1000... | 4 Mar 2023 19:16 | 1 |
#include<stdio.h> #include<math.h> unsigned long a[70000]; int main() { unsigned long i,k,n; long double l; scanf("%lu\n",&n); for(i=0;i<n;i++) { scanf("%lu",&a[i]); } for(i=0;i<n;i++) { l=((sqrt(-7+8*a[i])-1)/ 2); k=l; if(l==k) printf("1 "); else printf("0 "); } return 0; } |
| just 12Lines of python | SUBHADEEP MANDAL | 1880. Psych Up's Eigenvalues | 4 Mar 2023 15:34 | 1 |
a=input() a1=list(map(int,input().split())) b=input() b1=list(map(int,input().split())) c=input() c1=list(map(int,input().split())) cnt=0 for i in a1: if i in b1: if i in c1: cnt+=1 print(cnt) |
| WA in test case #37 | Unsocial_A | 2019. Pair: normal and paranormal | 4 Mar 2023 12:24 | 3 |
What is test case no #37?Or give me some test case.. Try this: ACbcBaAbCBCa, you definetely can connnect them Not correct test.The sequence has exactly n lowercase letters and exactly n uppercase letters. |
| WA 4 | 👑TIMOFEY👑 | 1037. Memory Management | 1 Mar 2023 18:01 | 1 |
WA 4 👑TIMOFEY👑 1 Mar 2023 18:01 dont forget return in your functions |
| TL 8 | 👑TIMOFEY👑 | 1806. Mobile Telegraphs | 28 Feb 2023 17:00 | 2 |
TL 8 👑TIMOFEY👑 27 Feb 2023 18:02 you need to check, what element exist in your map Edited by author 28.02.2023 17:06 |
| C++ not pass 2 test | andrey | 1001. Reverse Root | 27 Feb 2023 20:43 | 1 |
#include <cstdlib> #include <iomanip> #include <iostream> #include <cstdio> #include <math.h> #include <vector> #include <string.h> #include <algorithm> using namespace std; vector <double> numbers = {}; int main(int argc, const char * argv[]) { double n; while (std::cin >> n) { numbers.push_back(n); if (cin.peek() == '\n' ){ reverse(numbers.begin(),numbers.end()); for(int i = 0;i < numbers.size();++i){ cout<<fixed<<setprecision(4)<<sqrt(numbers[i])<<endl; } break; }; }
return 0; } I have a correct answer with input numbers in sample, and i see message "wrong answer" in 2 test. First test was passed, but i don't see where i lose... |
| RE 16 | 👑TIMOFEY👑 | 2152. Tax Fees | 27 Feb 2023 18:04 | 1 |
RE 16 👑TIMOFEY👑 27 Feb 2023 18:04 I think is bigger problem is surmise, what stoi dont work for long long integers |
| Difficulty is overestimated | Igor Parfenov | 1266. Kirchhoff's Law | 26 Feb 2023 15:23 | 1 |
Seems, programmers just know physics quite poorly) This is just gauss. But don't forget about multiple edges. |
| Hint | Конобейцев Иван Олегович | 1484. Film Rating | 26 Feb 2023 13:14 | 1 |
Hint Конобейцев Иван Олегович 26 Feb 2023 13:14 You CAN'T just assume x2 = x + 0.5 because x2 is some INTEGER / n. So max x2 can be x or x + 0.1 + x + 0.38 etc. Took me 15 minutes to ac after I understood it |
| test3??? | vtalgo23_drobysh_333219 | 1155. Troubleduons | 25 Feb 2023 22:48 | 1 |
test3??? vtalgo23_drobysh_333219 25 Feb 2023 22:48 can you please share the Idea of test 3? |
| anyone in O(1) extra space? | Aayush Chaturvedi | 1319. Hotel | 24 Feb 2023 23:41 | 2 |
Is there a O(1) extra space solution? I tried looking up for patterns but it didn't help. Can we have a function f such that matrix[i][j] = f(i, j, n) for all valid i and j? Still takes more space than some O(N^2) solution i've found for some reasons. I am not really familiar with cpp compiler optimizations, so that might be linked ! #include <iostream> int main(int argc, char* argv[]) { int size; if (argc != 2) { scanf("%d",&size); } else { size = std::atoi(argv[1]); } int halfSquare = (size * size) / 2; int half = size / 2; int previousY0 = halfSquare - (half) - size; int previous; for (int y = 0; y < size; y++) { previous = previousY0 + (size + 1 - y); printf("\n%d ", previous); for (int x = 1; x < size; x++) { previous = previous - (size - 1 - std::max(std::abs(x - y), 1) + (x >= y)); printf("%d ", previous); } previousY0 = previousY0 + (size + 1 - y); } return 0; } |
| WA10 | andreyDagger`~ | 1281. River Basin | 24 Feb 2023 01:09 | 1 |
WA10 andreyDagger`~ 24 Feb 2023 01:09 Two segments of rivers (a, b) and (c, d) intersects iff a == c or a == d or b == c or b == d |
| Usefull test | Zombie1995 | 1160. Network | 23 Feb 2023 18:55 | 1 |
For me this test was usefull: 7 11 1 2 7 1 4 5 2 4 9 2 3 8 2 5 7 3 5 5 4 5 15 4 6 6 5 6 8 5 7 9 6 7 11 |
| WA 8 test | Конобейцев Иван Олегович | 1534. Football in Gondor | 23 Feb 2023 16:53 | 1 |
WA 8 test Конобейцев Иван Олегович 23 Feb 2023 16:53 |
| this problem has incomplete tests | 👑TIMOFEY👑 | 2152. Tax Fees | 23 Feb 2023 16:14 | 1 |
mxw can be 1, and all w is about 10^9 and a can be 10^9, then in the worst case we need to withdraw the sum of 10^18 about 10^5 times, so long double should not fit, but it fits |
| WA7 | Aleksei Odintsov | 2002. Test Task | 23 Feb 2023 13:29 | 1 |
WA7 Aleksei Odintsov 23 Feb 2023 13:29 What is in test7? Edited by author 23.02.2023 13:59 |
| Test Cases Here :-) | Varun Sharma | 1049. Brave Balloonists | 22 Feb 2023 12:09 | 8 |
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 Ans:- 1681 5000 5000 5000 5000 5000 5000 5000 5000 5000 5000 Ans:- 1271 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 Ans:- 12870 You are very stupid!!! 0<ans<9 Don't repeat my mistake and remember that you must calculate prime numbers up to 10000 (not to 100!). Maybe this test will help you: 9797 1 1 1 1 1 1 1 1 1 Answer = 4 (9797 = 97 * 101) Sorry for my English :) Edited by author 04.04.2010 19:55 oh!!! thank you very much, i just calculate to sqrt(10000)... if you have WA in test4, you can try this. oh!!! thank you very much, i just calculate to sqrt(10000)... if you have WA in test4, you can try this. I just got accepted. It is enough to calc prime nums up to Num div 2. Because if Num not divided on any prime <= than Num div 2 then Num itself is a prime num. Edited by author 22.02.2023 12:10ilyas: Please don't call people stupid. Everyone makes mistakes; the author simply forgot to calculate modulo 10. Thanks for tests, I join. Input: 1 1 1 1 1 1 1 1 1 1 Output: 1 Input: 43 5 49 2 3 5 3 4 5 5 Output: 0 Input: 10000 10000 12 10000 10000 10000 13 10000 10000 29 Output: 2 Input: 99 101 102 103 104 105 106 107 108 109 Output: 6 My program passes all these test cases... Still I am getting wrong answer at 6th test. |
| This problem is pretty easy. Here is the test which helped me with WA 4 | Конобейцев Иван Олегович | 1904. The Lessons of the Past | 21 Feb 2023 17:13 | 1 |
|
| Give me some tests, please | Oshchepkov Dmitriy | 1135. Recruits | 21 Feb 2023 01:47 | 1 |
I have WA in test 13 Edited by author 21.02.2023 01:48 |