結果
問題 |
No.294 SuperFizzBuzz
|
ユーザー |
![]() |
提出日時 | 2015-10-24 01:33:22 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 314 bytes |
コンパイル時間 | 779 ms |
コンパイル使用メモリ | 7,196 KB |
実行使用メモリ | 13,880 KB |
最終ジャッジ日時 | 2024-09-13 04:36:02 |
合計ジャッジ時間 | 7,249 ms |
ジャッジサーバーID (参考情報) |
judge1 / 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:]