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