結果
| 問題 |
No.559 swapAB列
|
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2020-08-31 02:25:53 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 291 bytes |
| コンパイル時間 | 77 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-15 16:19:52 |
| 合計ジャッジ時間 | 1,021 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 7 |
ソースコード
S = int(input())
s = list(S)
result = 0
sorted = False
while not sorted:
sorted = True
for i in range(len(S) - 1):
if s[i] > s[i + 1]:
t = s[i]
s[i] = s[i + 1]
s[i + 1] = t
result += 1
sorted = False
print(result)
c-yan