結果
問題 | No.712 赤旗 |
ユーザー |
![]() |
提出日時 | 2020-06-03 20:10:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 363 bytes |
コンパイル時間 | 687 ms |
コンパイル使用メモリ | 80,808 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-25 09:39:00 |
合計ジャッジ時間 | 1,076 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 |
ソースコード
#include<iostream> #include<math.h> #include<string.h> #include<vector> #include<algorithm> #include<iomanip> #include<deque> using namespace std; int main(){ int n,m; cin >> n >> m; int cnt_R=0; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ char temp; cin >> temp; if(temp=='R')cnt_R++; } } int ans=n*m-cnt_R; cout << ans <<endl; return 0; }