結果
| 問題 |
No.1362 [Zelkova 8th Tune] Black Sheep
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-22 21:21:46 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 70 ms / 1,000 ms |
| コード長 | 272 bytes |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 11,648 KB |
| 最終ジャッジ日時 | 2024-12-27 20:41:48 |
| 合計ジャッジ時間 | 2,849 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 38 |
ソースコード
# URL : https://yukicoder.me/problems/no/1362
s = input()
st = set()
dup = None
for i in s:
if i in st:
dup = i
break
st.add(i)
nondup = None
for i in s:
if i != dup:
nondup = i
break
idx = s.index(nondup)
print(idx + 1, nondup)