| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1333556 | ahmetlbktd4 | Emacs (COCI20_emacs) | C++20 | 1 ms | 344 KiB |
#include "bits/stdc++.h"
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
int n,m;
cin >> n >> m;
char a[n][m];
for (int i = 0;i < n;i++){
for (int j = 0;j < m;j++){
cin >> a[i][j];
}
}
int p = 0;
for (int i = 0;i < n;i++){
for (int j = 0;j < m;j++){
if ((!i || a[i-1][j] == '.') && (!j || a[i][j-1] == '.') && a[i][j] == '*')
p++;
}
}
cout << p << "\n";
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
