結果

問題 No.279 木の数え上げ
ユーザー 初見わこつです初見わこつです
提出日時 2015-09-21 12:41:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 476 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 15,184 KB
最終ジャッジ日時 2024-04-22 16:05:11
合計ジャッジ時間 1,704 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,624 KB
testcase_01 AC 29 ms
10,496 KB
testcase_02 AC 26 ms
10,496 KB
testcase_03 AC 26 ms
10,368 KB
testcase_04 AC 26 ms
10,368 KB
testcase_05 AC 28 ms
10,368 KB
testcase_06 AC 28 ms
10,368 KB
testcase_07 AC 27 ms
10,240 KB
testcase_08 AC 26 ms
10,496 KB
testcase_09 AC 27 ms
10,368 KB
testcase_10 AC 41 ms
14,524 KB
testcase_11 AC 29 ms
11,332 KB
testcase_12 AC 34 ms
13,472 KB
testcase_13 AC 29 ms
11,136 KB
testcase_14 AC 43 ms
15,184 KB
testcase_15 AC 40 ms
13,556 KB
testcase_16 AC 36 ms
13,276 KB
testcase_17 AC 39 ms
14,876 KB
testcase_18 AC 32 ms
12,376 KB
testcase_19 AC 40 ms
14,700 KB
testcase_20 AC 41 ms
14,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python3

# This problem is http://yukicoder.me/problems/531

def count_char(char, string):
    return len(string.split(char)) - 1

first_line  = input()
# first_line  = 'takahashikunlovesyukicoder'
string      = first_line

length_list = []
length_list.append(count_char(char='t', string=string))
length_list.append(count_char(char='r', string=string))
length_list.append(int(count_char(char='e', string=string) / 2))

print(min(length_list))

# print(length_list)
0