結果
問題 | No.1255 ハイレーツ・オブ・ボリビアン |
ユーザー | tamato |
提出日時 | 2020-10-09 23:30:52 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 526 bytes |
コンパイル時間 | 264 ms |
コンパイル使用メモリ | 87,736 KB |
実行使用メモリ | 81,148 KB |
最終ジャッジ日時 | 2023-09-27 19:52:53 |
合計ジャッジ時間 | 4,580 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 62 ms
75,992 KB |
testcase_01 | AC | 65 ms
75,612 KB |
testcase_02 | AC | 68 ms
76,012 KB |
testcase_03 | AC | 70 ms
75,948 KB |
testcase_04 | AC | 68 ms
76,080 KB |
testcase_05 | AC | 115 ms
76,592 KB |
testcase_06 | AC | 129 ms
76,480 KB |
testcase_07 | AC | 113 ms
76,748 KB |
testcase_08 | TLE | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
ソースコード
mod = 1000000007 eps = 10**-9 def main(): import sys input = sys.stdin.readline def valuation(k): ret = 0 while k % 2 == 0: ret += 1 k //= 2 return ret for _ in range(int(input())): N = int(input()) s, m, NN = 0, 1, 2 * N - 1 while True: k = NN + m v = valuation(k) s += v m = k >> v if m == 1: break print(s) if __name__ == '__main__': main()