結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー GrayCoder
提出日時 2021-01-22 22:01:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 80 ms / 1,000 ms
コード長 215 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,648 KB
最終ジャッジ日時 2024-12-28 00:45:18
合計ジャッジ時間 3,701 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 38
権限があれば一括ダウンロードができます

ソースコード

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