結果
| 問題 | No.294 SuperFizzBuzz |
| コンテスト | |
| ユーザー |
koyopro
|
| 提出日時 | 2015-10-24 01:33:22 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 314 bytes |
| 記録 | |
| コンパイル時間 | 197 ms |
| コンパイル使用メモリ | 77,324 KB |
| 最終ジャッジ日時 | 2025-12-03 17:43:13 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 TLE * 1 |
| other | -- * 12 |
ソースコード
# -*- 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:]
koyopro