tahsynx's blog

By tahsynx, history, 8 years ago, In English

When I clone a contest from vjudge and try to set a replay contest, it always shows that the begin time of the contest must be prior to begin time of original contest, and when I set new contest as replay contest, it shows the end time must be prior to begin time. So when I set a replay contest, it finishes immediately.

And about ranklist xls file, I've no idea how to create one, I created like this and it as accepted.

Update: Solved https://www.youtube.com/watch?v=MkjIG7cbp5M

Full text and comments »

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

By tahsynx, history, 8 years ago, In English

problem link

I have submitted 35C - Fire Again, 19158530 but both Participant's output and Jury's answer is blank.

Then I submitted just "cout << 1 << ' ' << 1 << endl;" (ans of the first test case) 19159183 but no luck.

Full text and comments »

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

By tahsynx, history, 9 years ago, In English

I'm trying to learn combinatorial game theory, can anyone provide me a list of practice problems on this topic ? It would be great help. Thanks !

Full text and comments »

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

By tahsynx, history, 9 years ago, In English

i'm stuck at problem 1137 at lightoj . My idea is to do binary search over radius of the circle and then calculate the answer. But idk why i'm getting WA. here is my code. Can someone help me, where i'm doing wrong or provide some test case ?

problem description and sample i/o is given bellow:

Problem Statement :

When a thin rod of length L is heated n degrees, it expands to a new length L' = (1+n*C)*L, where C is the coefficient of heat expansion.

When a thin rod is mounted on two solid walls and then heated, it expands and takes the shape of a circular segment, the original rod being the chord of the segment.

Your task is to compute the distance by which the center of the rod is displaced. That means you have to calculate h as in the picture.

Input

Input starts with an integer T (≤ 20), denoting the number of test cases.

Each case contains three non-negative real numbers: the initial length of the rod in millimeters L, the temperature change in degrees n and the coefficient of heat expansion of the material C. Input data guarantee that no rod expands by more than one half of its original length. All the numbers will be between 0 and 1000 and there can be at most 5 digits after the decimal point.

Output

For each case, print the case number and the displacement of the center of the rod in single line. Errors less than 10-6 will be ignored.

Sample Input/Output

3 1000 100 0.0001

150 10 0.00006

10 0 0.001

Case 1: 61.3289915

Case 2: 2.2502024857

Case 3: 0

Full text and comments »

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

By tahsynx, history, 9 years ago, In English

printf("%.3lf\n", -0.0001); This shows -0.000, but shouldn't it be 0.000?

How to print it correctly ? Without the minus sign, only 0.000 ?

Full text and comments »

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