結果

問題 No.294 SuperFizzBuzz
ユーザー ckawatakckawatak
提出日時 2018-07-28 17:16:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 362 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 81,256 KB
最終ジャッジ日時 2023-09-20 01:44:25
合計ジャッジ時間 8,280 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,344 KB
testcase_01 WA -
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 #

N = int(input())

def sfb(n):
    xs = str(n)
    for x in xs:
        if x != '3' and x != '5':
            return False
    return True

def solve():
    s = 0    
    c = 0
    n = 37
    while True:
        s = n * 15
        if sfb(s):
            c = c + 1
            if c == N:
                return s
        n = n + 10
        
print(solve())        
0