| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| Подскажите, пожалуйста, что не так с кодом? Wrong answer, тест 3. | Юля | 1820. Уральские бифштексы | 9 окт 2022 18:51 | 1 |
Подскажите, пожалуйста, что не так с кодом? Wrong answer, тест 3. Edited by author 09.10.2022 19:48 Edited by author 09.10.2022 19:48 |
| Hint | Конобейцев Иван Олегович | 1124. Мозаика | 9 окт 2022 14:42 | 1 |
Hint Конобейцев Иван Олегович 9 окт 2022 14:42 Amount of pieces to move, edges to make euler path(only pieces with (in[i] + out[i]) > 0) and amount of components |
| WA29 | popolwooh | 1643. Атака Тёмной крепости | 8 окт 2022 13:41 | 3 |
WA29 popolwooh 6 авг 2015 16:04 Try this test (if you look neighbour cells in order from -1 left -1 up (11 oclock) clockwise) 4 4 #A#. #A!. ##.# .*$. This test also helps with WA3 3 6 !AB#B* #####. $..... out: 6 |
| solution | Berezhko German | 1905. Путешествия во времени | 7 окт 2022 10:48 | 3 |
solution Berezhko German 14 окт 2012 12:52 dfs or bfs is the correct idea? oh, i'm done with it (: Edited by author 15.10.2012 15:14 Edited by author 15.10.2012 15:22 Edited by author 14.10.2012 16:49 Yes, it's BFS with plenty of binary searches to build initial graph. |
| Give me more tests | SK1 | 1223. Chernobyl’ Eagle on a Roof | 6 окт 2022 21:42 | 10 |
I've got AC. If you have WA check 100 512. (Answer is 10) my programm gives a right answer 10 on 100 512 and though it doesn't pass 1 test Try this: 1 100 = 100 2 100 = 14 3 100 = 9 4 100 = 8 5 100 = 7 6 100 = 7 2 3 = 2 7 999 = 11 Ononism is the best way to pass your free time!!! Isn't it? Pops must die!!! ROCK FOREVER!!! Punks NOT dead!!! HM... IT's so interesting... Edited by author 30.11.2005 18:20 When I buy my wife, she was fifteen - she was nice, her vagin work well, and she was good at the plow. But one year later her voice go deep, she become hair on her chest, and her vagin hang like a sleeve of a wizard... Sad, isn't it? When I buy my wife, she was fifteen - she was nice, her vagin work well, and she was good at the plow. But one year later her voice go deep, she become hair on her chest, and her vagin hang like a sleeve of a wizard... Sad, isn't it? Баран! Edited by author 11.04.2014 14:21 |
| Бинаркой считать количество яиц? | Артём | 1223. Chernobyl’ Eagle on a Roof | 6 окт 2022 21:21 | 2 |
Если я правильно понимаю, надо посчитать количество яиц, необходимых для поиска E бинаркой, а если оно окажется больше количества яиц в гнезде, то вывести количество этажей? |
| (C++) Why runtime error happened? | ThomasLin | 1001. Обратный корень | 6 окт 2022 14:08 | 1 |
#include <iostream> #include <vector> #include <iomanip> #include <cmath> using namespace std; int main (){ double Input=0 ; double number[] ; int counter=0; while ( cin >> Input && Input != EOF){ number[counter] = Input; cout << number[counter]; counter++ ; } for (int i=counter ; i>0; i--){ cout << setprecision(4) << sqrt (number[counter]) << endl; } } |
| WA#8 | Piyush | 2056. Стипендия | 5 окт 2022 11:35 | 1 |
WA#8 Piyush 5 окт 2022 11:35 #include <bits/stdc++.h> using namespace std; signed main(){ int n; cin>>n; int sum=0; for(int i=0;i<n;i++){ int x; cin>>x; sum+=x; } double cnt1=(double)sum/(double)n; if(cnt1==3){ cout<<"None"; }else if(cnt1==5){ cout<<"Named"; }else if(cnt1>=4.5 && cnt1!=5){ cout<<"High"; }else if(cnt1!=3 && cnt1!=5 && cnt1<4.5){ cout<<"Common"; } } getting a wrong answer on test 8 |
| if u have wa 19 | 👑TIMOFEY👑 | 1060. Перевертыш | 4 окт 2022 20:24 | 1 |
i use clear binmask as in 1122, but in 1122 u can chek for answer your board by every change of bit, BUT in THIS problem, u need check board when you finish your changes with bits. Example u have bits 1101 and next is 1110, u firstly change 1111 and then 1110 (two iterations because we need to do this iterations on board) so if u do check on every that iteration its wa19 |
| if u have WA 8 | 👑TIMOFEY👑 | 1060. Перевертыш | 4 окт 2022 20:19 | 1 |
|
| TO ADMINS | 👑TIMOFEY👑 | 1122. Игра | 4 окт 2022 20:15 | 1 |
On test bwwb bbwb bwwb bwww My program gives 3, but right ans is 4 this test from 1060 |
| Test for WA 5 | [SESC]Fstilus ♂♊🎧皇 | 1968. Стеклянная пирамида | 2 окт 2022 19:54 | 2 |
//Input: 12 10 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 2 3 1 1 1 0 0 0 0 0 2 4 2 0 0 0 0 0 0 0 0 2 3 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 //Correct output: WWWWW WRWWW WWRWW WWWWW WWWWW WWWWW WRRW WRWW WWWW WWWW WWWW RWW WWW WWW WWW RW WW WW W W Another one: 8 12 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 |
| WA #2 reason | jban | 1086. Криптография | 1 окт 2022 11:46 | 1 |
It's written that the numbers don't exceed 15000, but it's most likely that the test 2 contains number 15001, cuz i was receiving WA until i changed border to 163847 (is 15001st prime number) |
| WA3 | shamim | 1303. Минимальное покрытие | 26 сен 2022 20:45 | 1 |
WA3 shamim 26 сен 2022 20:45 Could anybody help me? I have WA at 3th test .I tried many test and answers were correct .I also tried this test and answer was correct: 5 -5 0 0 1 1 2 2 3 4 5 3 4 10 49000 0 0 |
| Hint | Конобейцев Иван Олегович | 2148. Безумный выстрел | 26 сен 2022 17:54 | 1 |
Hint Конобейцев Иван Олегович 26 сен 2022 17:54 The only formulas you need is a distance between two points to find the answer and a distance between point and a line to check if answer exists |
| WA 7 test | Конобейцев Иван Олегович | 1156. Два тура | 24 сен 2022 19:49 | 1 |
WA 7 test Конобейцев Иван Олегович 24 сен 2022 19:49 |
| Solution | Конобейцев Иван Олегович | 1332. Джинн-бомбардировки | 24 сен 2022 14:39 | 1 |
Solution Конобейцев Иван Олегович 24 сен 2022 14:39 For every pair of points, build circles on them and find their collision points(<= 2). Then for every collision point find number of points on distance < r to it. Maximum is the answer |
| Why do i always got CE ??? | Александр | 1636. Штрафное время | 20 сен 2022 22:37 | 2 |
#include <stdio.h> int main() { int t1,t2,n; int c=0; scanf("%d %d", &t1, &t2); for (int i=0; i<=9; i++) { scanf("%d", &n); c+=(n*20); } t2-=c; if (t2<t1) { printf("Dirty debug :("); } else { printf("No chance."); } } Если я не ошибаюсь, вам стоит подключить пространство имён. using namespace std; |
| WA5 | Mohammad Sadegh Jazayeri | 1484. Кинорейтинг | 20 сен 2022 16:46 | 2 |
WA5 Mohammad Sadegh Jazayeri 3 апр 2010 22:26 Re: WA5 LetsSolveSomePuzzles 20 сен 2022 16:46 In WA5 X=Y and thus the answer should be "0" |
| If you had trouble with 13/27 tests | Aleksey[TheCrawfish]Bykov'` | 1269. Антимат | 18 сен 2022 21:42 | 1 |
If you have WA 13, try this test: 1 a 1 b....ba , where b repeated ~130000 times If you've got rte 27: m can be more than 10000 |