Submission #49556

# Submission time Handle Problem Language Result Execution time Memory
49556 2018-05-31T07:58:05 Z bharat2002 Tracks in the Snow (BOI13_tracks) C++14
2.1875 / 100
291 ms 217460 KB
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define pii pair<int, int>
#define f first
#define s second
int h, w, f, r;
signed main()
{
	ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
	cin>>h>>w;f=r=0;
	for(int i=0;i<h;i++)
	{
		for(int j=0;j<w;j++){
			char temp;cin>>temp;
			if(temp=='f') f++;
			else if(temp=='r') r++;
		}
	}
	if(f==0||r==0) cout<<1;
	else cout<<2;
}
# Verdict Execution time Memory Grader output
1 Incorrect 7 ms 504 KB Output isn't correct
2 Incorrect 3 ms 720 KB Output isn't correct
3 Incorrect 2 ms 720 KB Output isn't correct
4 Incorrect 4 ms 1000 KB Output isn't correct
5 Incorrect 3 ms 1144 KB Output isn't correct
6 Incorrect 2 ms 1224 KB Output isn't correct
7 Incorrect 2 ms 1228 KB Output isn't correct
8 Incorrect 2 ms 1232 KB Output isn't correct
9 Incorrect 2 ms 1260 KB Output isn't correct
10 Incorrect 3 ms 1276 KB Output isn't correct
11 Incorrect 3 ms 1352 KB Output isn't correct
12 Incorrect 3 ms 1600 KB Output isn't correct
13 Incorrect 4 ms 1600 KB Output isn't correct
14 Incorrect 4 ms 1600 KB Output isn't correct
15 Incorrect 5 ms 1920 KB Output isn't correct
16 Incorrect 6 ms 2040 KB Output isn't correct
17 Incorrect 5 ms 2276 KB Output isn't correct
18 Incorrect 6 ms 2516 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 2536 KB Output isn't correct
2 Incorrect 26 ms 4000 KB Output isn't correct
3 Incorrect 249 ms 19864 KB Output isn't correct
4 Incorrect 51 ms 23368 KB Output isn't correct
5 Incorrect 117 ms 32284 KB Output isn't correct
6 Incorrect 218 ms 48024 KB Output isn't correct
7 Incorrect 3 ms 48024 KB Output isn't correct
8 Incorrect 3 ms 48024 KB Output isn't correct
9 Incorrect 4 ms 48048 KB Output isn't correct
10 Incorrect 4 ms 48164 KB Output isn't correct
11 Incorrect 3 ms 48164 KB Output isn't correct
12 Incorrect 4 ms 48228 KB Output isn't correct
13 Incorrect 28 ms 49752 KB Output isn't correct
14 Incorrect 17 ms 50512 KB Output isn't correct
15 Incorrect 15 ms 51524 KB Output isn't correct
16 Incorrect 12 ms 52116 KB Output isn't correct
17 Incorrect 61 ms 56200 KB Output isn't correct
18 Incorrect 54 ms 60052 KB Output isn't correct
19 Incorrect 50 ms 63708 KB Output isn't correct
20 Incorrect 93 ms 67152 KB Output isn't correct
21 Incorrect 155 ms 76264 KB Output isn't correct
22 Incorrect 142 ms 85132 KB Output isn't correct
23 Incorrect 118 ms 92672 KB Output isn't correct
24 Incorrect 132 ms 101536 KB Output isn't correct
25 Incorrect 220 ms 117340 KB Output isn't correct
26 Correct 195 ms 129280 KB Output is correct
27 Incorrect 243 ms 144876 KB Output isn't correct
28 Incorrect 238 ms 160572 KB Output isn't correct
29 Incorrect 291 ms 176348 KB Output isn't correct
30 Incorrect 229 ms 191500 KB Output isn't correct
31 Incorrect 151 ms 201592 KB Output isn't correct
32 Incorrect 242 ms 217460 KB Output isn't correct