結果

問題 No.294 SuperFizzBuzz
ユーザー koyoprokoyopro
提出日時 2015-10-24 01:33:22
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 314 bytes
コンパイル時間 799 ms
コンパイル使用メモリ 6,676 KB
実行使用メモリ 10,300 KB
最終ジャッジ日時 2023-10-11 05:18:40
合計ジャッジ時間 7,443 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,872 KB
testcase_01 AC 12 ms
5,920 KB
testcase_02 TLE -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

N, = map(int, raw_input().split())

num = 0
ans = 0
for i in xrange(15, 1<<26, 2):
    #print bin(i)
    if bin(i).count("1") % 3 == 1:
        num += 1
        #print num, i
        if num == N:
            ans = i
            break
print bin(ans).replace("1", "5").replace("0", "3")[3:]
0