結果
問題 | No.729 文字swap |
ユーザー |
|
提出日時 | 2018-10-04 07:00:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 163 bytes |
コンパイル時間 | 269 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-12 10:57:37 |
合計ジャッジ時間 | 1,433 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
from functools import reduce s=input() i,j=map(int,input().split()) t=[c for c in s] d=t[j] t[j]=t[i] t[i]=d print(reduce(lambda x, y: x + y, [str(x) for x in t]))