結果
問題 | No.1538 引きこもりさんは引き算が得意。 |
ユーザー |
![]() |
提出日時 | 2021-06-08 18:40:26 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 280 ms / 2,000 ms |
コード長 | 206 bytes |
コンパイル時間 | 531 ms |
コンパイル使用メモリ | 6,816 KB |
実行使用メモリ | 46,848 KB |
最終ジャッジ日時 | 2024-12-14 05:34:38 |
合計ジャッジ時間 | 6,723 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 54 |
コンパイルメッセージ
Unquoted string "a" may clash with future reserved word at Main.pl line 2. Main.pl syntax OK
ソースコード
<>=~$";%0=%1=(0,a);for$a(glob<>){$z|=$a==$';$h^=1or$a=-$a;%u=%$h;$$h{$_+$a}|=$u{$_}|1,$$h{$_-$a}|=$u{$_}|2for keys%u;}for$a(keys%0){$z|=$_&&($0{$a}|$_)==3for@1{$a-$',$a+$'};}print$z?Yes:No;