結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー convexineqconvexineq
提出日時 2021-01-23 10:26:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 123 ms / 1,000 ms
コード長 150 bytes
コンパイル時間 262 ms
コンパイル使用メモリ 86,968 KB
実行使用メモリ 78,080 KB
最終ジャッジ日時 2023-08-28 19:08:52
合計ジャッジ時間 6,130 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
71,480 KB
testcase_01 AC 90 ms
71,544 KB
testcase_02 AC 91 ms
71,520 KB
testcase_03 AC 90 ms
71,700 KB
testcase_04 AC 91 ms
71,668 KB
testcase_05 AC 91 ms
71,704 KB
testcase_06 AC 90 ms
71,596 KB
testcase_07 AC 88 ms
71,504 KB
testcase_08 AC 91 ms
71,668 KB
testcase_09 AC 90 ms
71,368 KB
testcase_10 AC 91 ms
71,796 KB
testcase_11 AC 91 ms
71,548 KB
testcase_12 AC 90 ms
71,688 KB
testcase_13 AC 123 ms
77,664 KB
testcase_14 AC 115 ms
76,980 KB
testcase_15 AC 99 ms
76,696 KB
testcase_16 AC 106 ms
76,976 KB
testcase_17 AC 123 ms
77,740 KB
testcase_18 AC 108 ms
76,764 KB
testcase_19 AC 122 ms
77,856 KB
testcase_20 AC 112 ms
77,072 KB
testcase_21 AC 110 ms
76,992 KB
testcase_22 AC 116 ms
77,552 KB
testcase_23 AC 122 ms
77,868 KB
testcase_24 AC 122 ms
77,916 KB
testcase_25 AC 122 ms
78,080 KB
testcase_26 AC 120 ms
77,688 KB
testcase_27 AC 120 ms
77,620 KB
testcase_28 AC 121 ms
77,848 KB
testcase_29 AC 122 ms
77,668 KB
testcase_30 AC 122 ms
77,748 KB
testcase_31 AC 121 ms
77,668 KB
testcase_32 AC 122 ms
78,000 KB
testcase_33 AC 122 ms
77,924 KB
testcase_34 AC 121 ms
77,764 KB
testcase_35 AC 89 ms
71,732 KB
testcase_36 AC 89 ms
71,528 KB
testcase_37 AC 89 ms
71,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
s = input()
d = list(Counter(s).items())
if d[0][1] == 1:
    x = d[0][0]
else:
    x = d[1][0]
print(s.index(x)+1, x)
0