結果

問題 No.729 文字swap
ユーザー _Clay_____Clay____
提出日時 2018-09-18 16:36:04
言語 Scheme
(Gauche-0.9.13)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 12,448 KB
最終ジャッジ日時 2023-09-25 09:49:58
合計ジャッジ時間 2,213 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
12,260 KB
testcase_01 AC 20 ms
12,260 KB
testcase_02 AC 19 ms
12,376 KB
testcase_03 AC 19 ms
12,240 KB
testcase_04 AC 19 ms
12,296 KB
testcase_05 AC 20 ms
12,260 KB
testcase_06 AC 20 ms
12,416 KB
testcase_07 AC 20 ms
12,240 KB
testcase_08 AC 19 ms
12,316 KB
testcase_09 AC 19 ms
12,148 KB
testcase_10 AC 19 ms
12,448 KB
testcase_11 AC 20 ms
12,252 KB
testcase_12 AC 20 ms
12,448 KB
testcase_13 AC 20 ms
12,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(use srfi-43)
(let* ((s (string->vector (read-line)))
       (l (map string->number (string-split (read-line) " ")))
       (i (car l))
       (j (cadr l)))
      (print (begin (vector-swap! s i j)
                    (vector->string s))))
0