結果

問題 No.791 うし数列
ユーザー yuppe19 😺yuppe19 😺
提出日時 2019-02-22 22:51:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 220 bytes
コンパイル時間 998 ms
コンパイル使用メモリ 6,520 KB
実行使用メモリ 6,268 KB
最終ジャッジ日時 2023-08-17 00:17:12
合計ジャッジ時間 3,309 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,896 KB
testcase_01 AC 11 ms
5,868 KB
testcase_02 AC 11 ms
6,008 KB
testcase_03 AC 11 ms
5,876 KB
testcase_04 AC 11 ms
6,056 KB
testcase_05 AC 11 ms
5,876 KB
testcase_06 AC 11 ms
5,880 KB
testcase_07 AC 11 ms
6,088 KB
testcase_08 AC 11 ms
6,184 KB
testcase_09 AC 11 ms
6,080 KB
testcase_10 AC 11 ms
6,084 KB
testcase_11 AC 11 ms
6,144 KB
testcase_12 AC 11 ms
6,180 KB
testcase_13 AC 11 ms
6,244 KB
testcase_14 AC 11 ms
6,268 KB
testcase_15 AC 12 ms
6,232 KB
testcase_16 AC 12 ms
6,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python2
# -*- coding: utf-8 -*-
# †
def f(N):
    x = 13
    for i in xrange(1, 110):
        if x == N:
            return i
        x = x * 10 + 3
    return -1


N = int(raw_input())
res = f(N)
print res
0