結果

問題 No.1992 Tendon Walk
ユーザー tailstails
提出日時 2022-07-01 21:21:43
言語 Perl
(5.38.2)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 96 bytes
コンパイル時間 211 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 4,560 KB
最終ジャッジ日時 2023-08-17 08:27:47
合計ジャッジ時間 806 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,500 KB
testcase_01 AC 2 ms
4,480 KB
testcase_02 AC 2 ms
4,560 KB
testcase_03 AC 2 ms
4,532 KB
testcase_04 AC 2 ms
4,468 KB
testcase_05 AC 2 ms
4,540 KB
testcase_06 AC 2 ms
4,460 KB
testcase_07 AC 2 ms
4,540 KB
testcase_08 AC 2 ms
4,556 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$x=<>;
for((A,A,B,B,A,B,B)x100){
    $z+=/A/?2:-1;
    $y+=/A/?2:1;
    $z==$x&&exit!print$y;
}
0