Submission #00113


ソースコード

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
#include<iostream>
using namespace std;
int main()
{
int h,w,yh,yw,count=0,ans=0;
char a[1005][1005];
cin>>h>>w;
cin>>yh>>yw;
for(int i=0; i<yh; i++){
for(int j=0; j<yw; j++){
cin>>a[i][j];
}
}
for(int i=0; i<yw; i++){
count=0;
for(int j=0; j<yh; j++){
if(a[j][i]=='#'){
count++;
}
}
if(count>h){
ans+=h;
}else{
ans+=count;
}
}
cout<<ans<<'\n';
return 0;
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
Input01 AC 18 ms 1248 KB
1
Input02 AC 31 ms 1592 KB
1
Input03 AC 26 ms 532 KB
1
Input04 AC 28 ms 584 KB
1
Input05 AC 24 ms 764 KB
1
Input06 AC 22 ms 948 KB
1
Input07 AC 22 ms 1144 KB
1
Input08 AC 25 ms 1340 KB
1
Input09 AC 30 ms 1284 KB
1
Input10 AC 25 ms 592 KB
1
Input11 AC 19 ms 768 KB
1
Input12 AC 24 ms 816 KB
1
Input13 AC 34 ms 1004 KB
1
Input14 AC 29 ms 1196 KB
1
Input15 AC 30 ms 1388 KB
1
Input16 AC 22 ms 1332 KB
1
Input17 AC 29 ms 1532 KB
1
Input18 AC 27 ms 712 KB
1
Input19 AC 23 ms 884 KB
1
Input20 AC 22 ms 1188 KB
1