結果
| 問題 | No.927 Second Permutation |
| コンテスト | |
| ユーザー |
motor_radial
|
| 提出日時 | 2020-03-11 16:47:36 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 209 bytes |
| 記録 | |
| コンパイル時間 | 785 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 15,364 KB |
| 最終ジャッジ日時 | 2026-05-11 03:30:21 |
| 合計ジャッジ時間 | 7,786 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 WA * 1 OLE * 1 -- * 21 |
ソースコード
X=sorted(input(),reverse=True)
N=set(X)
if len(N)==1 or X[1]=="0":
print(-1)
else:
for i in range(1,len(X)-1):
if X[i]!=X[i+1]:
X[i],X[i+1]=X[i+1],X[i]
print("".join(X))
motor_radial