제출 #742264

#제출 시각아이디문제언어결과실행 시간메모리
742264irmuunTracks in the Snow (BOI13_tracks)C++17
2.19 / 100
72 ms33740 KiB
#include<bits/stdc++.h> using namespace std; #define pb push_back #define ll long long #define ff first #define ss second #define all(s) s.begin(),s.end() int main(){ ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int h,w; cin>>h>>w; string s[h+5]; int f=0,r=0; for(int i=0;i<h;i++){ cin>>s[i]; for(int j=0;j<w;j++){ if(s[i][j]=='R'){ r=1; } if(s[i][j]=='F'){ f=1; } } } cout<<r+f; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...