Submission #00042


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include<bits/stdc++.h>
using namespace std;
int main(){
int h,w;
int a,b;
char c;
int arr[1002]={};
cin>>h>>w;
cin>>a>>b;
for(int i=0;i<a;i++){
for(int j=0;j<b;j++){
cin>>c;
if(c=='#')arr[j]++;
}
}
int ans=0;
for(int j=0;j<b;j++){
ans+=min(arr[j],h);
}
cout<<ans<<endl;
return(0);
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
Input01 AC 29 ms 480 KB
1
Input02 AC 36 ms 460 KB
1
Input03 AC 32 ms 560 KB
1
Input04 AC 28 ms 536 KB
1
Input05 AC 28 ms 512 KB
1
Input06 AC 21 ms 488 KB
1
Input07 AC 27 ms 468 KB
1
Input08 AC 28 ms 452 KB
1
Input09 AC 32 ms 560 KB
1
Input10 AC 24 ms 536 KB
1
Input11 AC 24 ms 512 KB
1
Input12 AC 23 ms 488 KB
1
Input13 AC 27 ms 464 KB
1
Input14 AC 21 ms 564 KB
1
Input15 AC 29 ms 544 KB
1
Input16 AC 22 ms 520 KB
1
Input17 AC 31 ms 632 KB
1
Input18 AC 21 ms 604 KB
1
Input19 AC 23 ms 584 KB
1
Input20 AC 22 ms 560 KB
1