結果
| 問題 |
No.353 ヘイトプラス
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-02 00:24:06 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 1,000 ms |
| コード長 | 293 bytes |
| コンパイル時間 | 728 ms |
| コンパイル使用メモリ | 8,320 KB |
| 実行使用メモリ | 8,448 KB |
| 最終ジャッジ日時 | 2024-06-29 13:23:56 |
| 合計ジャッジ時間 | 1,566 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
use strict;
use warnings;
use utf8;
use Data::Dumper;
use Encode qw/encode decode decode_utf8 encode_utf8 from_to/;
my $inp = decode('utf8', <STDIN>);
my @array = split(" ", $inp);
my($a ,$b) = @array;
while ($b != 0)
{
my $c = ($a & $b) << 1;
$a ^= $b;
$b = $c;
}
print $a;