結果

問題 No.294 SuperFizzBuzz
ユーザー lip_of_cygnuslip_of_cygnus
提出日時 2015-11-07 01:51:09
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 511 bytes
コンパイル時間 708 ms
コンパイル使用メモリ 6,604 KB
実行使用メモリ 6,044 KB
最終ジャッジ日時 2023-10-11 14:51:17
合計ジャッジ時間 8,035 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
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 #

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys

n=int(raw_input())
j=0
i=0
a=0
k=1
b=""
appin=0

while appin!=1:
		
	while appin!=1 or j<2**k:
		if j>=2**k:
			k=k+1
			j=1
		b='0'+str(k)+'b'
		z=str(format (j,b))
		if z.count("1")%3==0:
	
			i=i+1
			if i==n:
				z=z.replace("0","3")
				z=z.replace("1","5")		
				w=z
				appin=1
		j=j+2

	
print w

'''
while i<n:	
	z=str(30*a+15)	
	for j in range (0,len(z)):
		if (z[j]=="3" or z[j]=="5"):
			k=k+1
	if len(z)==k:
		i=i+1
	a=a+1
	k=0
print z
'''
0