shefin.cse16's blog

By shefin.cse16, 8 months ago, In English

Hello, Codeforces community!

We are thrilled to invite you to participate in the first-ever rated team contest of Toph.co: Tough Duo, April 2022 on April 14, 02:00 PM BST. To participate you will have to form a team of 2 members and be registered on Toph. You can create an account here.

The contest is rated for all participants. There are also prizes for the students of Bangladeshi academic institutions:

  • 1st place: Toph goodies and 250 GB Portable SSD
  • 2nd and 3rd place: Toph goodies

The authors of the contest are upobir, shefin.cse16, adnan_toky, thisIsMorningstar, rifatrraazz, Black_Be4rD, Short_Bit , TarifEzaz and Joty. Thanks to TarifEzaz for coordinating this contest and hjr265 for the Toph platform.

You will be given 7-8 problems and 3 hours to solve them. The contest will follow standard ICPC rules.

We've tried to create very engaging problems and robust datasets for this contest. We hope you will enjoy the problem set.

Also, there will be an editorial shortly after the contest ends.

Good Luck!

UPD: Congratulations to the teams! The problems are available for practice here. Editorials are attached to each of the problems separately.

Full text and comments »

 
 
 
 
  • Vote: I like it
  • +42
  • Vote: I do not like it

By shefin.cse16, 16 months ago, In English

I was solving the problem 185B/186D. Then I encountered a weird issue. I got WA on test $$$8$$$ in this submission: 123642519. But, when I made the solve function inline, it passed test $$$8$$$ (though it got WA on test $$$31$$$): 123642504.

In test $$$8$$$, the submission without inlined solve function prints 2.712800440549510 6.287199559450490 0.000000000000000 as output. On the other hand, the submission with inlined solve function prints 2.700961045920403 6.299038954079596 0.000000000000000 as output. So, the outputs have significant precision differences.

My question is, how the inlined function has an impact on precision? It will be very helpful if anybody gives an insight.

Full text and comments »

 
 
 
 
  • Vote: I like it
  • +47
  • Vote: I do not like it