| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| Удаление аккаунта | ermukanov.sh | | 9 июл 2022 17:00 | 2 |
Предусмотрена ли функция удаления аккаунта? Каким образом это можно сделать? |
| Problem 1089 "Verification with the Dictionary" has been rejudged | Vladimir Yakovlev (USU) | 1089. Проверка со словарём | 9 июл 2022 16:58 | 1 |
The following changes have been made to the problem: - The checking program strictly checks that the initial formatting is preserved, for example it rejects outputs with additional empty lines before or after the text. - Missing limitations added to the problem statements: - The words in the text to correct are no longer than 16 characters. - The lines in the text to correct are no longer than 80 characters. - The cumulative length of all lines doesn't exceed 10000 characters. - New tests have been added. - Time limit has been reduced to 0.5 sec. - All solutions have been rejudged. 44% of authors have lost their accepted solutions. |
| What is the correct output to this test? | Yunzhong | 1071. Никифор 2 | 8 июл 2022 19:55 | 5 |
1. Input: 7122 2119 2. Input: 7122 2120 My AC program outputs next: > 1. Input: 7122 2119 Output: 4923 > 2. Input: 7122 2120 Output: 2501 > 1. Input: 7122 2119 5003 > 2. Input: 7122 2120 2501 > 1. Input: 7122 2119 5003 > 2. Input: 7122 2120 2501 I'm too ! List of posible solutions (I think) 7122 2119 Base 5003 12119 => 2119 Base 2966 21190 => 2119 Base 2965 21192 => 2119 Base 2964 21194 => 2119 Base 2963 21196 => 2119 Base 2962 21198 => 2119 (1) Base 423 16354 => 54 (2) Why 1 or 2 dont can be solutions?, there is something I am not seeing? Edited by author 08.07.2022 19:57 |
| what is 12 test | hakka_no_togame | 1523. K-инверсии | 8 июл 2022 14:43 | 1 |
почему если сначала for k.. for (i=n-1; i >= 0; i--) inc() то ва12 а если for(i = n-1; i >=0; i--) for k... inc() то АС? надеюсь кто-нибудь понял.. Edited by author 08.07.2022 14:59 |
| wa5 | hakka_no_togame | 1987. Вложенные отрезки | 2 июл 2022 22:06 | 1 |
wa5 hakka_no_togame 2 июл 2022 22:06 i dont have any idea why wa5.. Edited by author 02.07.2022 22:06 |
| if you have mle #7 just use visual c++ 2019 | hakka_no_togame | 1306. Медиана последовательности | 2 июл 2022 20:45 | 1 |
g++ 9.2 - mle 7 visual c++ - AC |
| More tests | Danil Dushistov [Adyghe SU] | 1881. Длинное условие задачи | 30 июн 2022 14:03 | 10 |
More tests Danil Dushistov [Adyghe SU] 4 ноя 2012 02:44 2 11 12 aaaa bb ccc ddddddddddd eeeeeeee ff jjjjj hhhh iiiii jjjjjjjjjj kk lll Correct answer: 4 2 11 10 aaaa bb ccc ddddddddddd eeeeeeee ff jjjjj hhhh iiiii jjjjjjjjjj Correct answer: 3 2 100 12 aaaa bb ccc ddddddddddd eeeeeeee ff jjjjj hhhh iiiii jjjjjjjjjj kk lll Correct answer: 1 1 11 12 aaaa bb ccc ddddddddddd eeeeeeee ff jjjjj hhhh iiiii jjjjjjjjjj kk lll Correct answer: 7 2 13 8 aaaa bb ccccc ddddddddddddd eeeeeeee ffff jjjjj hhhhhhh Correct answer: 2 1 1 1 a Correct answer: 1 I have correct answer at all tests, but i got WA #4 i have similar problem with the WA#4 anyone can help me??? If you have WA#4, then you didn't count last partially filled line. I have correct answer at all tests, but i got WA #5... Can anyone help me? try 2 3 4 aaa aaa aaa aaa CA-2 Before I found this testcasei got WA5 then i found my mistake with this test and got AC. Good luck! Thanks!I find my mistake in last test. Maybe it will help you, try this test: 3 6 5 aaaaaa bbb cc dddd ee Correct answer is 2, after recovering this mistake I get trought WA#4 |
| Is given problem test case is right??? | codefresher | 1119. Метро | 29 июн 2022 20:47 | 2 |
The problem test case is: 3 2 3 1 1 3 2 1 2 but is it right?? My observation finds: 3 2 3 1 1 3 2 2 1 plz help me??? |
| How to distribute safe places for mages properly and effectively on python | MikhailOrlov | 1952. Убить дракона | 26 июн 2022 21:36 | 1 |
Is there any mathematical algorithm or i need to check every way mages can go |
| Start station position can be greater, than finish station position. | Igor Parfenov | 1031. Железнодорожные билеты | 23 июн 2022 20:48 | 1 |
This firstly happens in 8th test. |
| why wrong answer | M. A. Murad | 1086. Криптография | 23 июн 2022 00:12 | 1 |
#include<stdio.h> int main(){ int testCase,i,j,l; scanf("%d",&testCase); for(l=0;l<testCase;l++){ int k=0,count; scanf("%d",&count); int pnumber=0; for(j=2;k<count;j++){ int flag=0; for(i=2;i*i<=j;i++){ if(j%i==0){ flag=1; break; } } if(flag){ }else{ pnumber=j; k++; } } printf("%d",pnumber); } return 0; } |
| the program gives the correct answer, but test 8 is not passed | Teplotehnik | 1005. Куча камней | 22 июн 2022 20:54 | 3 |
I don’t understand what the problem is when passing the test 8. everything works for me Edited by author 22.06.2022 22:21 try this: 8 6 7 9 13 18 24 31 50 expected: 0 My program do this #include <iostream> int main() { int temp = 0, maxtemp=0, even = 0, midle = 0, different = 0, maxdifferent = 0; int arrayA[100]; int sizeArray; std::cin >> sizeArray; for (int i = 0; i < sizeArray; i++) { std::cin >> arrayA[i]; } for (int i = 0; i < sizeArray; i++) { for (int j = i; j < sizeArray; j++) { if (arrayA[i] < arrayA[j]) { temp = arrayA[i]; arrayA[i] = arrayA[j]; arrayA[j] = temp; }; }; }; for (int i = 0; i < sizeArray; i++) { midle += arrayA[i]; }; even = midle % 2; maxdifferent= different= midle = midle / 2 +even; if (sizeArray != 1) { for (int i = 0; i < sizeArray; i++) { different = midle; for (int j = i; j < sizeArray; j++) { if (different >= arrayA[j]) { temp += arrayA[j]; different -= arrayA[j]; }; }; if (maxdifferent > different) { maxdifferent = different; }; }; }; maxdifferent = 2* maxdifferent -even; std::cout << maxdifferent; } |
| To those who got WA#6 | hbmhalley | 1029. Министерство | 22 июн 2022 17:18 | 3 |
Maybe you have to make a larger array to put the answer. thank you very much,, I've been stuck in this problem for weeks because of this. |
| Unable to find why compilation error | Tasin | 2056. Стипендия | 22 июн 2022 12:16 | 1 |
#include<stdio.h> int main() { int n,i,sum = 0; float res; scanf("%d",& n); int arr[n];
for(i = 1; i <= n; i++) { scanf("%d",&arr[i]); sum += arr[i]; } for(i = 1 ; i <= n; i++) { if(arr[i] == 3) { printf("None\n"); break; } }
res = (float)sum / n; if(res == 5) printf("Named\n"); else if(res >= 4.5) printf("High\n"); else if ((res < 4.5 && res >= 4)) printf("Common\n");
return 0; } |
| Crash on 3 test | RomanR | 1036. Счастливые билеты | 22 июн 2022 08:43 | 5 |
Have anybody crash on 3 test? It's interesting, that my friend decided this problem and on tests with n>50 we have the same answer. I had. You must add in your programm something like this: if(sum/9>2*n){ printf("0"); return 0; } thanks. I just found my forgotten! my program cannot print 0 'zero' ( - -") Why is this condition required? The recursive formula takes care of this.. Without this condition my code gets WA3.. And when I add it, it gets AC.. Could you plz give a test case where this condition is really required, where the DP formula fails..?? I don't think it's DP formula's fault Perhaps when you are deleting leading zero, you haven't judge if the point is >= 0 |
| Solution is simple | Igor Parfenov | 1961. Кантонский язык | 20 июн 2022 02:05 | 1 |
The solution is just a very little more difficult, that the first, which comes to mind. I tried firstly to count these probabilities (those are C(M, m) * C(N-M, n-m) / C(N, n)), but seems, it is impossible with these constraints. |
| Some tests here | Georgiy Platonov | 1356. Чего бы попроще | 19 июн 2022 19:04 | 3 |
Here are some test cases and my AC prog's answers 1000000000 999999929 71 999999000 999998981 19 999000999 3 5 999000991 405 3 5 397 101 101 1001 3 7 991 10001 5 23 9973 100001 3 7 99991 1000001 5 13 999983 10000001 3 7 9999991 100000001 5 7 99999989 555555555 3 11 555555541 191919191 5 23 191919163 838383838 838383779 59 123456789 5 23 123456761 987654321 987654319 2 987654319 987654319 101010101 3 19 101010079 Good luck Thanks for this testset, helped me find the bug :) The same, in a more reusable format: 18 1000000000 999999000 999000999 405 101 1001 10001 100001 1000001 10000001 100000001 555555555 191919191 838383838 123456789 987654321 987654319 101010101 71 999999929 19 999998981 3 5 999000991 3 5 397 101 3 7 991 3 31 9967 3 7 99991 3 19 999979 3 7 9999991 3 67 99999931 3 11 555555541 3 61 191919127 59 838383779 3 29 123456757 2 987654319 987654319 3 19 101010079 |
| WA5 | __Andrewy__ | 2152. Таможенные пошлины | 18 июн 2022 20:05 | 3 |
WA5 __Andrewy__ 19 мар 2022 14:57 i use python so long arithmetics is not problem for me i use greedy algo and try to replace digit to 9 i want to see test Re: WA5 __Andrewy__ 19 мар 2022 17:11 How to solve problem without long arithmetics? Re: WA5 Nikita Pashmentov (Vologda ML, MIPT) 18 июн 2022 20:05 The main idea of this test following in sorting relative fees instead of absolute fees. Simple example: 2 1 10 10 1 1 999990 1 100 1 The first package has huge absolute value of fees ((999999 - 10) * 1), but it adds only 9 credits to the initial fees. Edited by author 18.06.2022 20:06 |
| Python Wrong answer test#1 | qwe123123123 | 1001. Обратный корень | 17 июн 2022 14:38 | 2 |
I'm just learning python. Can you please tell me where could be the error? import math data = input() length = len(data) list = [] i = 0 while i < length: if data[i] != " " and data[i] != "\n": end_index = i for j in range(i + 1, length): if data[j] == " " or data[i] == "\n": break end_index += 1 list.insert(0, int(data[i:end_index + 1])) i = end_index + 1 else: i += 1 for e in list: value = round(math.sqrt(e), 4) print(f'{value:.4f}') You only need to write about 3 lines of python code to solve this. try: help(str.split) help(reversed) help(str.join) |
| WA#25 | Artem Khyzha | 1088. Илья Муромец | 12 июн 2022 18:26 | 2 |
WA#25 Artem Khyzha 17 авг 2010 02:19 If you're unlucky and get WA#25 (just like I did), try a test: > 2 4 5 1 1 1 The answer should be NO. This obvious test helped me to fix a little bug, so I decided to share. |