Please, try EDU on Codeforces! New educational section with videos, subtitles, texts, and problems. ×

### Ferrarixxx's blog

By Ferrarixxx, history, 12 days ago, ,

Hi guys ,
I think the editorial's solution (https://codeforces.com/blog/entry/78864)
for this (https://codeforces.com/contest/1367/problem/D) problem is wrong

Proof:
Try this test case :
1
cbazzkjbsdf
3
3 1 0

For the above testcase actual output should have been abc
but according to almost all codes(including editorialist's) its ksz

So am i correct ?? or have i made a mistake in understanding the problem??

I resort to your generous replies.

• -9

By Ferrarixxx, history, 5 weeks ago, ,

Hi Guys,
The above picture shows my approach for this problem https://codeforces.com/contest/1354/problem/C1

Am basically using the interior angle subtended by 3 adjacent vertices and then to find the vertical ( perpendicular ) line's length using tan function
But am getting completely unexpected answer.

// -- MY CODE :

long double n;

cin >> n;

// long double angle = (((180 * (2*n — 2)) / (2*n) ) / 360) * 2 * 3.14

long double angle = ((((n — 1)) / n)) * 3.14;

cout << tan(angle) << endl;

PLEASE GUYS HELP ME FIND MY MISTAKE .

• +6

By Ferrarixxx, history, 6 weeks ago, ,

Hi Guys,
I hope u are doing well

Actually
I cant understand why my code gives WA on 47 testcase
Even when my code is almost similar to the editorialist's code,

The testcase :
29 425 46 81
405 237 24 45 165 328 134 309 7 236 348 204 368 396 298 343 180 186 395 246 44 53 303 404 271 344 269 292 12

Mycode's output : 1

Problem E Div 3 : https://codeforces.com/contest/1324/problem/E

• -7

By Ferrarixxx, history, 7 weeks ago, ,

Hi Am writing this because am highly desperate to find my mistake.

except that i used map and priority_queue
For Problem C ( https://codeforces.com/contest/1350/problem/C )

Am getting WA on test case — 4
https://codeforces.com/contest/1350/submission/80297500

I HAVE COMMENTED MY APPROACH IN MY CODE , WRT ALL THE STEPS

• 0

By Ferrarixxx, history, 2 months ago, ,

Applied Simple binary search and 2 pointer method to find ans and am getting right ans for the sample test cases I dont know where the flaw is in my code that it gives Wrong output for the extreme corner test case -> Test Case 3

I have commented my code , its very easy to understand ,

Please find my flaw in my code or approach.

• 0

By Ferrarixxx, history, 3 months ago, ,

Submissions Page : https://codeforces.com/contest/1141/status/E

I got this error ->" wrong output format Unexpected end of file — token expected " My Program/Code outputs the correct answer then why is this error coming.

Please see for urself that my output is correct , Please compare it with any other previously submitted code from the submissions page and check the correct output of 56th test case