| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| Those whot got wa int test case 2.look at here | md adullah al mamun udoy | 1197. Один в поле воин | 4 ноя 2022 18:30 | 1 |
#include<bits/stdc++.h> using namespace std; int main(){ int t; cin >> t; while(t--){ string s; cin >> s; int a = int(s[1] - 48); if(s[0]=='a' ||s[0]=='h'){ if(a==1 ||a==8) cout << 2 << endl; else if(a==2||a==7) cout << 3 << endl; else if(a>2) cout << 4 << endl; } else if(s[0]=='b'||s[0]=='g'){ if (a == 1 || a==8) cout << 3 << endl; else if (a == 2|| a==7) cout << 4 << endl; else if (a > 2) cout << 6 << endl; } else{ if (a == 1|| a==8) cout << 4 << endl; else if (a == 2|| a==7) cout << 6<< endl; else if (a > 2) cout << 8<< endl; } } } |
| Как получен ответ из примера? | __Andrewy__ | 1359. Стройка | 3 ноя 2022 13:47 | 2 |
Из точки (2,2) мы можем попасть в (1,1),а потом в (0,0), сразу в (0,0), в (1,0),а потом в (0,0). В первом случае t=0.63246+0.23277=0.86522, во втором t=0.86522, в третьем t=0.70711+0.15811=0.86522. Я использую формулу для t=(-v+sqrt(v*v+2*g*len*sina))/(g*sina)),если наклонный отрезок и t=len/v иначе. Попробуй вариант 2,2 -> 2,1 -> 0,0 (опускаемся на 1 вниз(по вертикали), потом проводим до конца(по диагонали)) |
| WA6 on C++? Use BigInt header only | Raphael Osipov | 1012. K-ичные числа. Версия 2 | 3 ноя 2022 06:34 | 1 |
|
| if U HABE PROBLEM 69 | 👑TIMOFEY👑`~ | 1643. Атака Тёмной крепости | 2 ноя 2022 15:39 | 1 |
I tested for a long time and tried to understand why the thymus mockingly shows me such a mocking number, it's all because of the portals, it's just impossible there, I got so confused in them that I didn't understand how my code worked, in general, how to avoid such a problem. add all sorts of checks near the portals, which is right wherever there are portals, just destroy these portals completely, absolutely |
| wa 2 | 👑TIMOFEY👑`~ | 1258. Бильярд | 2 ноя 2022 13:41 | 1 |
wa 2 👑TIMOFEY👑`~ 2 ноя 2022 13:41 dont add negative numbers to answer |
| wa 5 | 👑TIMOFEY👑`~ | 1067. Структура папок | 2 ноя 2022 10:21 | 1 |
wa 5 👑TIMOFEY👑`~ 2 ноя 2022 10:21 i think its something like this 2 ab\df\fd df\df ab df fd df df fd |
| AC - C# и Причина MLE на 11 тесте | Kergan | 1100. Таблица результатов | 2 ноя 2022 03:57 | 1 |
Сама задача конечно же довольно простая. Решив ее несколькими способами я каждый раз упирался в превышение объема допустимой памяти на 11 тесте. Соответственно львиная доля времени ушла на осознание того, что же именно потребляет память и на устранение этого узкого места. Как можно было догадаться, память жрали Строки. Я убрал использование string отовсюду кроме считывания данных из консоли. Хранение данных реализовано через два массива int. Для разбора ввода и для вывода ответов в консоль использовались массивы int и char. Вообще, это одна из тех задач, которые отлично иллюстрируют проблему, описанную в FAQ "Как писать решения на C#": "В некоторых задачах потребуется собственная быстрая реализация разбора входных данных и форматирования выходных". Только здесь проблема не в скорости, а в памяти. |
| WA #8 | BZz13 | 1152. Кривые зеркала | 2 ноя 2022 02:26 | 2 |
WA #8 BZz13 27 июн 2016 15:59 somebody faced this problem? somebody has a test data? Try this 4 8 1 8 8 should give 1 4 8 8 1 8 also should give 1 |
| wa 2 | 👑TIMOFEY👑`~ | 1682. Чокнутый профессор | 1 ноя 2022 22:53 | 1 |
wa 2 👑TIMOFEY👑`~ 1 ноя 2022 22:53 |
| WA 3 | 👑TIMOFEY👑`~ | 1939. Первая печать | 1 ноя 2022 15:14 | 1 |
WA 3 👑TIMOFEY👑`~ 1 ноя 2022 15:14 if time of djek ravno time of this people so, this is crash |
| VERY NICE PROBLEM FOR PYTHICS | 👑TIMOFEY👑`~ | 1939. Первая печать | 1 ноя 2022 15:13 | 1 |
i just draw its in paint and use some kinematick formulas and solve it by that |
| Some tests | Loky_Yuri [USTU Frogs] | 1326. Крышки | 1 ноя 2022 11:08 | 2 |
Some tests Loky_Yuri [USTU Frogs] 27 июл 2009 21:10 These two tests helped we find my bugs. Test 2 1 3 0 2 1 2 The answer is 4. Test 3 10 20 30 1 29 3 1 2 3 2 1 2 The answer is 29. Hope it will help you too. Indeed helpful. You may buy more taps than you need. |
| wa19 | 👑TIMOFEY👑`~ | 1574. Математики и скобки | 1 ноя 2022 11:07 | 1 |
wa19 👑TIMOFEY👑`~ 1 ноя 2022 11:07 if you use the two-pointer method, then you have problems with the left pointer |
| TLE 8. How can I optimise my code? (Python) | Maksim | 1196. Экзамен по истории | 1 ноя 2022 08:23 | 2 |
N =int(input()) Nl = [] for i in range(N): Nl.append(int(input()))
M = int(input()) Ml = [] for j in range(M): Ml.append(int(input()))
answerl = [] Nl = set(Nl) Nl = list(Nl) Nl.sort() for ni in Nl: for mi in Ml: if mi == ni: answerl.append(mi) else: continue
print(len(answerl)) |
| Why that's not working? Hint please! | Shahalam22 | 2012. Про Гришу Н. | 31 окт 2022 19:44 | 1 |
#include <stdio.h> int main(){ int a, b, c; scanf("%d", &a); b=12-a; if(b*45<=240){ printf("Yes"); } else{ printf("No"); } return 0; } |
| WA on 25 | Rami Ismael | 2034. Корованы | 31 окт 2022 13:57 | 2 |
if u used min max things and O(n) algorithm. WHEN u have found the point where two shortest paths converge. You need to save distance from this point to r AND when u do MAX(the point,your new path) u need also do min(the point, very old distance in this point). |
| wa 10 | 👑TIMOFEY👑`~ | 1401. Игроки | 30 окт 2022 13:32 | 1 |
wa 10 👑TIMOFEY👑`~ 30 окт 2022 13:32 |
| please help python | Pundit | 1820. Уральские бифштексы | 30 окт 2022 08:58 | 2 |
n = int(input()) k=int(input()) n=n*2 if n % k ==0: print(n/k) else: a=int(n/k)+1 print(a) I can't find my mistake. It keep telling me "Runtime error" the "only" input line contains... |
| To Denis Chertanov Help with wa48 | Groote | 2067. Друзья и ягоды | 29 окт 2022 18:40 | 2 |
use long long instead double |
| Help wa48/wa49 | Denis Chertanov 🐰 | 2067. Друзья и ягоды | 29 окт 2022 18:40 | 2 |
Why wa48 or wa49? Edited by author 06.10.2017 11:52 use long long instead double |