結果

問題 No.161 制限ジャンケン
ユーザー %20%20
提出日時 2017-08-19 00:21:31
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 5,000 ms
コード長 216 bytes
コンパイル時間 486 ms
コンパイル使用メモリ 5,408 KB
実行使用メモリ 5,368 KB
最終ジャッジ日時 2023-08-20 05:10:04
合計ジャッジ時間 1,434 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,236 KB
testcase_01 AC 5 ms
5,316 KB
testcase_02 AC 6 ms
5,284 KB
testcase_03 AC 6 ms
5,096 KB
testcase_04 AC 6 ms
5,084 KB
testcase_05 AC 5 ms
5,208 KB
testcase_06 AC 6 ms
5,076 KB
testcase_07 AC 6 ms
5,312 KB
testcase_08 AC 6 ms
5,156 KB
testcase_09 AC 6 ms
5,356 KB
testcase_10 AC 6 ms
5,084 KB
testcase_11 AC 6 ms
5,180 KB
testcase_12 AC 6 ms
5,368 KB
testcase_13 AC 6 ms
5,064 KB
testcase_14 AC 6 ms
5,164 KB
testcase_15 AC 6 ms
5,068 KB
testcase_16 AC 5 ms
5,232 KB
testcase_17 AC 6 ms
5,212 KB
testcase_18 AC 6 ms
5,172 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($g,$c,$p)=glob<>;
$$_++for<>=~/./g;
0while$g&&$C&&(--$g,--$C,$%+=3)||$c&&$P&&(--$c,--$P,$%+=3)||$p&&$G&&(--$p,--$G,$%+=3);
0while$g&&$G&&(--$g,--$G,++$%)||$c&&$C&&(--$c,--$C,++$%)||$p&&$P&&(--$p,--$P,++$%);
print$%
0