DOOM 2018

View as PDF

Submit solution

Points: 15
Time limit: 2.5s
Memory limit: 2M

Problem type

Allowed languages
C , C++

In a universe not that far away, people fight for their lives and for their freedom. No one understands exactly how this universe came to be, but it is rumored that a single constant rules this domain. Valiantly have the people in this universe tried to compute this constant, yet they don't know why the constant exists or what it is convenient for.

Some years ago, a legend with last name starting with C discovered this constant. Quietly, he discovered the true power of this constant - to perform arithmetic quickly! Reality quickly struck though, as others around him rendered his constant useless with modern inventions. The constant lay buried in tomes unknown.

Revenge is incoming for those who understand the power that he discovered. Out of everyone left standing, they talk about you, the One. One who will find this constant and bring balance to the galaxy. The task is yours alone to solve.

Input Specification

The first line contains a single integer T, the number of test cases in the input. You may assume 1 \le T \le 10^6.

T lines follow. Each one contains a single string S of length at most 100.

Output Specification

For each test case, output the answer for the test case on its own line.

Sample Input


Sample Output



  • 4
    notericgu  commented on June 13, 2018, 11:51 a.m.


    • 2
      SongJiAh  commented on June 16, 2018, 8:40 a.m.

      Da Fook?