結果

問題 No.294 SuperFizzBuzz
ユーザー fmhrfmhr
提出日時 2015-10-23 23:39:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 342 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 77,680 KB
最終ジャッジ日時 2023-10-01 00:36:59
合計ジャッジ時間 10,412 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,436 KB
testcase_01 AC 74 ms
75,392 KB
testcase_02 WA -
testcase_03 AC 68 ms
71,524 KB
testcase_04 AC 70 ms
71,376 KB
testcase_05 AC 69 ms
71,488 KB
testcase_06 AC 76 ms
76,844 KB
testcase_07 AC 83 ms
77,496 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding:utf-8

import sys
from itertools import product
N = int(input())
ans = []
count = 0
for i in range(20):
    for n in product('35', repeat=i+1):
        x = ''.join(n)
        x = int(x)
        if x%15==0:
            count += 1
            # ans.append(x)
            if count==N:
                print(x)
                sys.exit()
0