Submission #00120


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <iostream>
using namespace std;
int main()
{
int h,w,yh,yw;
int count;
int ans=0;
char mas[1005][1005];
cin >>h>>w>>yh>>yw;
for(int i=0; i<yh; i++){
for(int j=0; j<yw; j++){
cin >>mas[i][j];
}
}
for(int i=0; i<yw; i++){
count = 0;
for(int j=0; j<yh; j++){
if(mas[j][i] == '#'){
count++;
}
}
if(count > h){
ans+=h;
}else{
ans+=count;
}
}
cout <<ans<<endl;
return 0;
}

ステータス

項目 データ
問題 0003 - 雛ちゃんとふろー
ユーザー名 ei1827
投稿日時 2018-08-22 12:43:48
言語 C++
状態 Accepted
得点 10
ソースコード長 491 Byte
最大実行時間 40 ms
最大メモリ使用量 1588 KB

セット

セット 得点 Cases
1 ALL 10 / 10 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
Input01 AC 26 ms 1248 KB
1
Input02 AC 29 ms 1588 KB
1
Input03 AC 24 ms 528 KB
1
Input04 AC 25 ms 580 KB
1
Input05 AC 30 ms 636 KB
1
Input06 AC 33 ms 956 KB
1
Input07 AC 22 ms 1024 KB
1
Input08 AC 36 ms 1216 KB
1
Input09 AC 38 ms 1420 KB
1
Input10 AC 19 ms 728 KB
1
Input11 AC 20 ms 892 KB
1
Input12 AC 24 ms 944 KB
1
Input13 AC 29 ms 996 KB
1
Input14 AC 22 ms 1060 KB
1
Input15 AC 40 ms 1376 KB
1
Input16 AC 23 ms 1444 KB
1
Input17 AC 19 ms 1392 KB
1
Input18 AC 21 ms 696 KB
1
Input19 AC 25 ms 872 KB
1
Input20 AC 26 ms 1168 KB
1