結果

問題 No.729 文字swap
ユーザー tailstails
提出日時 2018-09-07 21:21:24
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 107 bytes
コンパイル時間 674 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 5,344 KB
最終ジャッジ日時 2023-08-19 12:16:38
合計ジャッジ時間 1,464 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
5,180 KB
testcase_01 AC 5 ms
5,272 KB
testcase_02 AC 5 ms
5,204 KB
testcase_03 AC 4 ms
5,180 KB
testcase_04 AC 5 ms
5,152 KB
testcase_05 AC 5 ms
5,196 KB
testcase_06 AC 5 ms
5,084 KB
testcase_07 AC 5 ms
5,284 KB
testcase_08 AC 5 ms
5,340 KB
testcase_09 AC 5 ms
5,204 KB
testcase_10 AC 6 ms
5,344 KB
testcase_11 AC 5 ms
5,248 KB
testcase_12 AC 5 ms
5,056 KB
testcase_13 AC 4 ms
5,084 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$_=<>;
($a,$b)=glob<>;
$c=substr($_,$a,1)^substr($_,$b,1);
substr($_,$a,1)^=$c;
substr($_,$b,1)^=$c;
print;
0