結果
問題 |
No.222 引き算と足し算
|
ユーザー |
![]() |
提出日時 | 2015-06-10 12:19:24 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 141 bytes |
コンパイル時間 | 57 ms |
コンパイル使用メモリ | 6,820 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-11-15 21:54:29 |
合計ジャッジ時間 | 1,029 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 31 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
$s = <>; if($s =~ /([\+-]?\d+)([\+-])([\+-]?\d+)/){ if($2 eq '+'){ print $1-$3."\n"; }else{ print $1+$3."\n"; } }