結果
| 問題 |
No.638 Sum of "not power of 2"
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2018-01-26 22:24:57 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 1,000 ms |
| コード長 | 90 bytes |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 5,120 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-30 02:17:19 |
| 合計ジャッジ時間 | 1,008 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
$n=<>;
for(1..$n){
$b=$n-$_;
if($_&$_-1&&$b&$b-1){
print"$_ $b";
exit;
}
}
print-1;
tails