結果
| 問題 |
No.39 桁の数字を入れ替え
|
| ユーザー |
|
| 提出日時 | 2021-06-19 17:26:42 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| コンパイル時間 | 242 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-22 22:11:37 |
| 合計ジャッジ時間 | 1,358 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 6 |
ソースコード
s = list(input())
pre = []
def list2int(x):
x = "".join(x)
return int(x)
for i in range(len(s)):
for j in range(len(s)):
if i==j:continue
a = s[i]
b = s[j]
s[j]=a
s[i]=b
pre.append(list2int(s))
print(max(pre))