結果
| 問題 | 
                            No.1362 [Zelkova 8th Tune] Black Sheep
                             | 
                    
| コンテスト | |
| ユーザー | 
                             convexineq
                         | 
                    
| 提出日時 | 2021-01-23 10:26:01 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 100 ms / 1,000 ms | 
| コード長 | 150 bytes | 
| コンパイル時間 | 245 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 76,416 KB | 
| 最終ジャッジ日時 | 2024-12-30 04:55:46 | 
| 合計ジャッジ時間 | 5,165 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 38 | 
ソースコード
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)
            
            
            
        
            
convexineq