| Show all threads Hide all threads Show all messages Hide all messages |
| WA 13 | Dias | 1651. Shortest Subchain | 5 Feb 2021 22:21 | 3 |
WA 13 Dias 11 May 2010 01:43 Maybe someone could explain why I'm still getting WA 13? On all of tests in this forum i get right answers. Can anyone give more tests? I just figured out that I got WA13 because I assumed that if I get to each node with the minimum steps,I can eventually got to the end point with minimum steps.But this is not always true. Try This test 9 1 2 3 4 1 3 5 6 4 The answers is obviously 1 2 3 4.But my WA13 programme gave the answer 1 3 5 6 4 Hope this helps. I have WA 13 too, but i have correct answer for this test |
| Account Related | Abdulla | | 5 Feb 2021 02:54 | 3 |
Is there any way I could change my user(Author) name? Update your info -> Login |
| Tips | Ruhul Amin | 1209. 1, 10, 100, 1000... | 4 Feb 2021 05:02 | 1 |
Tips Ruhul Amin 4 Feb 2021 05:02 The triangular sequence is behind the scene. n belongs to triangular sequence if and only if (8n+1) is a square. |
| No subject | [MAI] do_v_5_strok | 2025. Line Fighting | 3 Feb 2021 21:49 | 1 |
Edited by author 03.02.2021 23:21 Edited by author 03.02.2021 23:21 Edited by author 03.02.2021 23:21 |
| This problem is so ez, why it has difficulty 2k | Zergatul | 1953. Biggest Inscribed Ellipse | 3 Feb 2021 19:01 | 1 |
Few lines of code with no conditions |
| Nice one! | bsu.mmf.team | 2134. Stampman | 3 Feb 2021 17:57 | 1 |
The most time I consumed was to prove that naive algorithm works here :) |
| Why wrong answer? Is author crazy? Code is all right! В чём неправильный ответ? Автор шизик? Код нормальный, и всё правильно. | Vlad Polukarov | 1820. Ural Steaks | 2 Feb 2021 19:39 | 1 |
|
| Few tests | Zergatul | 2153. Perfect Squad | 1 Feb 2021 19:37 | 1 |
4 WMC WMC WMC WMC --- 3 Looking for rogue 4 WM WMC WMR MR --- 4 |
| Texta | Dmitriy | K. Walk Along the Infinite Road | 1 Feb 2021 02:40 | 2 |
Texta Dmitriy 31 Jan 2021 17:35 Okey, he lost the page that had the number of the k-th interesting lamppost. So, the input contains one integer k. > Output the number of the k-th interesting lamppost. Sorry, what? What does input `k` mean then? ____ Я вроде бы родился русским, но никак не могу понять условие задачи. Это что, часть задачи - понять что требуется? Да, так и есть. По входным данным надо было понять, что это алгебраческая прогрессия, с шагом в 10074. |
| 8 test python 3.6 | roman velichkin | 1196. History Exam | 31 Jan 2021 17:37 | 3 |
use sets it's easy with them |
| TL 8, хотя разогнал на столько на сколько можно было | Ivan | 1196. History Exam | 31 Jan 2021 17:35 | 4 |
Сначала пробовал через множества, потом сократил через map всегда валился на 8 тесте по времени Решил напрячься Сел и написал два модуля, чтобы работать с битами На преподавателе включаю биты На студенте проверяю и прибавляю к ответу Сдаю задачу, уже в предвкушении надписи "Accepted", как тут мои глаза лезут на лоб. Снова "TL8" Что это за монстр такой этот восьмой тест?) Обычный бинарный поиск в этой задаче же. |
| A methodical way to solve(definitely can be improved) using c++ | tdnnojtupbkmuhehvb | 1197. Lonesome Knight | 30 Jan 2021 09:38 | 1 |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; while(n--){ string s; int a,b; cin>>s; a = s[0]-'a'+1; b = s[1]-'0'; a = min(a,9-a); b = min(b,9-b); if(a==b){ if(a==1) printf("2\n"); else if(a==2) printf("4\n"); else printf("8\n"); } else { if((a==1&&b==2)||(a==2&&b==1)) printf("3\n"); else if((a==1&&b>=3)||(a>=3&&b==1)) printf("4\n"); else if((a==2&&b>=3)||(a>=3&&b==2)) printf("6\n"); else if(a>2&&b>2)printf("8\n"); } } return 0; } |
| Limit for n <= 10^4 in russian version, and n <= 10^5 in english version | c_pp | 1906. The Lost Civilization | 28 Jan 2021 23:16 | 3 |
|
| How to copy value? | Zergatul | 2028. URCAPL, Episode 2 | 27 Jan 2021 07:01 | 2 |
I am stuck with this, it seems impossible to value from input to 2 registers. Ok, you can actually read n from input multiple times. And you can reduce value in current register to zero while increasing 2 (or more) other registers. This leads to copy operation. |
| WA#9 | Zergatul | 2027. URCAPL, Episode 1 | 27 Jan 2021 06:11 | 2 |
WA#9 Zergatul 30 Nov 2020 03:04 My limit was 10^4, not 10^5 |
| If WA 1 | Toshpulatov (MSU Tashkent) | 1732. Ministry of Truth | 26 Jan 2021 08:31 | 1 |
If WA 1 Toshpulatov (MSU Tashkent) 26 Jan 2021 08:31 |
| WA18 | Ilya Konik | 1593. Square Country. Version 2 | 25 Jan 2021 17:40 | 1 |
WA18 Ilya Konik 25 Jan 2021 17:40 Wrong answer 18. Can anybody help me, please? |
| Условия | Toshpulatov (MSU Tashkent) | 1487. Chinese Football | 25 Jan 2021 10:58 | 1 |
Условия Toshpulatov (MSU Tashkent) 25 Jan 2021 10:58 В задаче сказано, проверить существует ли такая команда 'x' что она обыграет и команду A и команду В, если существует то ответ No иначе YES в таком случае можно использовать bitset |
| Memory limit for 41 test!!! | FullMetal | 1780. Gray Code | 23 Jan 2021 03:48 | 4 |
Who many test???????????????????? ??0??1 ?0000? the answer is: 000001 000001 I'm also hung in testcase 53,who can help me?both test data or thought is ok. |
| My explanation | Vladimir Putin | 2018. The Debut Album | 22 Jan 2021 04:11 | 2 |
I defined three functions: C(i) - the number of ways to make the album if it consists of only i songs. A(i) - the number of ways ending in 1. B(i) - the number of ways ending in 2. C(i) = A(i) + B(i) A(i) = 1 if i <= 1 = C(i-1) if 1< i <=a = C(i-1) - B(i-a-1) i>a Notice that if i <= a there's no way to have more than a 1's, so we call C(i-1) and 'append' 1 at position i. The number of ways to do this reminds the same as C(i-1). If i>a you could have an invalid string of 1's. To counter this, we call B(i-a-1) to know exactly how many sequences would be invalid if we 'append' a 1 at position i. When i=a+1, there's only one invalid string resulting of appending 1 at a+1, the sequence consisting of only 1's. B is analogous to A (calls A instead of B and uses b instead of a). Edited by author 12.07.2019 04:31 But how do we eliminate duplicates ? |