結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー GrayCoderGrayCoder
提出日時 2021-01-22 22:01:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 52 ms / 1,000 ms
コード長 215 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 9,384 KB
最終ジャッジ日時 2023-08-27 19:08:50
合計ジャッジ時間 3,278 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,384 KB
testcase_01 AC 18 ms
8,416 KB
testcase_02 AC 18 ms
8,420 KB
testcase_03 AC 18 ms
8,408 KB
testcase_04 AC 18 ms
8,320 KB
testcase_05 AC 18 ms
8,464 KB
testcase_06 AC 18 ms
8,476 KB
testcase_07 AC 18 ms
8,380 KB
testcase_08 AC 18 ms
8,412 KB
testcase_09 AC 19 ms
8,412 KB
testcase_10 AC 18 ms
8,408 KB
testcase_11 AC 18 ms
8,420 KB
testcase_12 AC 18 ms
8,332 KB
testcase_13 AC 46 ms
9,172 KB
testcase_14 AC 44 ms
9,384 KB
testcase_15 AC 21 ms
8,540 KB
testcase_16 AC 30 ms
8,676 KB
testcase_17 AC 49 ms
9,252 KB
testcase_18 AC 35 ms
8,884 KB
testcase_19 AC 50 ms
9,188 KB
testcase_20 AC 38 ms
9,196 KB
testcase_21 AC 36 ms
8,804 KB
testcase_22 AC 45 ms
9,148 KB
testcase_23 AC 51 ms
9,216 KB
testcase_24 AC 51 ms
9,340 KB
testcase_25 AC 51 ms
9,320 KB
testcase_26 AC 51 ms
9,380 KB
testcase_27 AC 52 ms
9,292 KB
testcase_28 AC 50 ms
9,264 KB
testcase_29 AC 50 ms
9,240 KB
testcase_30 AC 51 ms
9,296 KB
testcase_31 AC 51 ms
9,332 KB
testcase_32 AC 51 ms
9,376 KB
testcase_33 AC 51 ms
9,292 KB
testcase_34 AC 51 ms
9,292 KB
testcase_35 AC 18 ms
8,364 KB
testcase_36 AC 18 ms
8,452 KB
testcase_37 AC 18 ms
8,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    S = input()
    cnt = Counter(S).most_common()
    print(S.index(cnt[1][0]) + 1, cnt[1][0])


main()
0