結果

問題 No.816 Beautiful tuples
ユーザー %20%20
提出日時 2019-07-16 20:17:43
言語 Perl
(5.40.0)
結果
AC  
実行時間 11 ms / 1,500 ms
コード長 136 bytes
コンパイル時間 412 ms
コンパイル使用メモリ 6,948 KB
実行使用メモリ 7,680 KB
最終ジャッジ日時 2024-12-14 14:01:51
合計ジャッジ時間 1,218 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($A,$B)=glob<>;
$N=$A+$B;
printf grep/-/||$_!=$A&&$_!=$B&&($A+$_)%$B<1&&($B+$_)%$A<1,(@_=grep$N%$_<1,1..sqrt$N),(map$N/$_,reverse@_),-1
0