結果

問題 No.294 SuperFizzBuzz
ユーザー fmhrfmhr
提出日時 2015-10-24 20:26:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 427 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 87,276 KB
実行使用メモリ 77,916 KB
最終ジャッジ日時 2023-10-11 09:11:20
合計ジャッジ時間 20,582 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,460 KB
testcase_01 AC 72 ms
71,328 KB
testcase_02 WA -
testcase_03 AC 68 ms
71,424 KB
testcase_04 AC 66 ms
71,456 KB
testcase_05 AC 64 ms
71,748 KB
testcase_06 AC 81 ms
76,936 KB
testcase_07 AC 101 ms
77,428 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
# from itertools import product

N = int(input())
count = 0
for i in range(20):
    for j in range(10000000):
        a = bin(j)[2:]
        if len(a)>i+1:
            break
        a = '0'*(i+1-len(a))+a
        n = a.replace('0', '3').replace('1', '5')
        x = ''.join(n)
        x = int(x)
        if x%15==0:
            count += 1
            if count==N:
                print(x)
                sys.exit()
0