結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー kikagekikage
提出日時 2021-08-12 18:21:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 209 ms / 1,000 ms
コード長 182 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 66,380 KB
最終ジャッジ日時 2024-04-09 22:17:06
合計ジャッジ時間 5,730 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,496 KB
testcase_01 AC 29 ms
10,624 KB
testcase_02 AC 28 ms
10,496 KB
testcase_03 AC 29 ms
10,624 KB
testcase_04 AC 29 ms
10,496 KB
testcase_05 AC 28 ms
10,496 KB
testcase_06 AC 26 ms
10,496 KB
testcase_07 AC 26 ms
10,624 KB
testcase_08 AC 27 ms
10,624 KB
testcase_09 AC 26 ms
10,496 KB
testcase_10 AC 26 ms
10,624 KB
testcase_11 AC 26 ms
10,752 KB
testcase_12 AC 29 ms
10,624 KB
testcase_13 AC 172 ms
56,732 KB
testcase_14 AC 159 ms
53,168 KB
testcase_15 AC 41 ms
15,616 KB
testcase_16 AC 91 ms
31,592 KB
testcase_17 AC 189 ms
62,108 KB
testcase_18 AC 117 ms
38,872 KB
testcase_19 AC 196 ms
64,740 KB
testcase_20 AC 131 ms
43,856 KB
testcase_21 AC 118 ms
39,652 KB
testcase_22 AC 165 ms
55,212 KB
testcase_23 AC 201 ms
66,252 KB
testcase_24 AC 202 ms
66,228 KB
testcase_25 AC 209 ms
66,248 KB
testcase_26 AC 205 ms
66,248 KB
testcase_27 AC 201 ms
66,376 KB
testcase_28 AC 200 ms
66,252 KB
testcase_29 AC 206 ms
66,252 KB
testcase_30 AC 200 ms
66,256 KB
testcase_31 AC 199 ms
66,380 KB
testcase_32 AC 200 ms
66,248 KB
testcase_33 AC 203 ms
66,172 KB
testcase_34 AC 201 ms
66,252 KB
testcase_35 AC 27 ms
10,624 KB
testcase_36 AC 28 ms
10,496 KB
testcase_37 AC 26 ms
10,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=list(input())
D=dict(list())
T=dict([(S[i],i+1) for i in range(len(S))]) #文字が最後に現れた際場所
S.sort()
if S[0]!=S[1]:print(T[S[0]],S[0])
else:print(T[S[-1]],S[-1])
0