Submission #500529

#TimeUsernameProblemLanguageResultExecution timeMemory
500529noNickmanEmacs (COCI20_emacs)C++11
10 / 50
1 ms300 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int n,m; cin >> n >> m; char a[n][m]; int ans=0; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cin >> a[i][j]; if(a[i][j] == '*') ans++; } } cout << ans << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...