結果
問題 | No.729 文字swap |
ユーザー |
![]() |
提出日時 | 2018-09-18 16:36:04 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 22 ms / 2,000 ms |
コード長 | 239 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 16,896 KB |
最終ジャッジ日時 | 2024-07-18 08:01:23 |
合計ジャッジ時間 | 1,294 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
(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))))