結果
| 問題 |
No.712 赤旗
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-06 10:31:13 |
| 言語 | PHP (843.2) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 237 bytes |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 31,232 KB |
| 実行使用メモリ | 31,764 KB |
| 最終ジャッジ日時 | 2024-07-18 13:51:45 |
| 合計ジャッジ時間 | 679 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$matrix=explode(" ",trim(fgets(STDIN)));
$cntRed=0;
$cntWhite=$matrix[0]*$matrix[1];
for($i=0;$i<$matrix[0];$i++){
$input=trim(fgets(STDIN));
$cntRed+=preg_match_all("/R/",$input);
}
$cntWhite=$cntWhite-$cntRed;
echo $cntWhite;