結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-26 13:25:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 117 ms / 1,000 ms
コード長 173 bytes
コンパイル時間 504 ms
コンパイル使用メモリ 87,252 KB
実行使用メモリ 93,568 KB
最終ジャッジ日時 2023-09-19 02:53:10
合計ジャッジ時間 6,777 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
71,276 KB
testcase_01 AC 79 ms
70,812 KB
testcase_02 AC 79 ms
71,160 KB
testcase_03 AC 80 ms
70,716 KB
testcase_04 AC 79 ms
71,116 KB
testcase_05 AC 80 ms
70,936 KB
testcase_06 AC 79 ms
71,112 KB
testcase_07 AC 80 ms
71,104 KB
testcase_08 AC 80 ms
70,960 KB
testcase_09 AC 79 ms
71,100 KB
testcase_10 AC 80 ms
71,236 KB
testcase_11 AC 80 ms
70,996 KB
testcase_12 AC 79 ms
71,060 KB
testcase_13 AC 98 ms
78,940 KB
testcase_14 AC 98 ms
78,876 KB
testcase_15 AC 80 ms
75,472 KB
testcase_16 AC 90 ms
76,900 KB
testcase_17 AC 117 ms
92,932 KB
testcase_18 AC 93 ms
77,640 KB
testcase_19 AC 116 ms
93,336 KB
testcase_20 AC 91 ms
78,116 KB
testcase_21 AC 92 ms
77,796 KB
testcase_22 AC 98 ms
78,852 KB
testcase_23 AC 113 ms
93,556 KB
testcase_24 AC 115 ms
93,488 KB
testcase_25 AC 115 ms
93,568 KB
testcase_26 AC 117 ms
93,436 KB
testcase_27 AC 116 ms
93,468 KB
testcase_28 AC 117 ms
93,476 KB
testcase_29 AC 116 ms
93,516 KB
testcase_30 AC 117 ms
93,356 KB
testcase_31 AC 115 ms
93,380 KB
testcase_32 AC 117 ms
93,316 KB
testcase_33 AC 117 ms
93,440 KB
testcase_34 AC 115 ms
93,480 KB
testcase_35 AC 75 ms
70,940 KB
testcase_36 AC 79 ms
70,800 KB
testcase_37 AC 80 ms
71,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
S_set = list(set([S[i] for i in range(len(S))]))
if S.count(S_set[0]) == 1:
    print(S.index(S_set[0])+1,S_set[0])
else:
    print(S.index(S_set[1])+1,S_set[1])
0