結果
| 問題 | No.1362 [Zelkova 8th Tune] Black Sheep |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-22 22:21:49 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 65 ms / 1,000 ms |
| + 197µs | |
| コード長 | 660 bytes |
| 記録 | |
| コンパイル時間 | 61 ms |
| コンパイル使用メモリ | 82,416 KB |
| 実行使用メモリ | 107,580 KB |
| 最終ジャッジ日時 | 2026-10-08 20:44:28 |
| 合計ジャッジ時間 | 4,378 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 38 |
ソースコード
import sys
import math
import collections
# sys.setrecursionlimit(10000001)
INF = 10 ** 20
# MOD = 10 ** 9 + 7
MOD = 998244353
def ni(): return int(sys.stdin.buffer.readline())
def ns(): return map(int, sys.stdin.buffer.readline().split())
def na(): return list(map(int, sys.stdin.buffer.readline().split()))
def na1(): return list(map(lambda x: int(x)-1, sys.stdin.buffer.readline().split()))
# ===CODE===
def main():
s = list(input())
cnt = collections.Counter(s)
res = []
for k, v in cnt.items():
if v == 1:
res.append(s.index(k)+1)
res.append(k)
print(*res)
if __name__ == '__main__':
main()