답안 #511461

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
511461 2022-01-15T22:09:30 Z Jean7 Emacs (COCI20_emacs) C++14
25 / 50
1 ms 332 KB
#include <bits/stdc++.h>
#define fio ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define int long long

using namespace std ;

int32_t main ()
{
    fio
    int n , m , ans = 0 ;
    cin >> n >> m ;
    char a[n][m] ;
    for ( int i = 0 ; i < n ; i++ )
    {
        for ( int k = 0 ; k < m ; k++ ) cin >> a[i][k] ;
    }
    for ( int i = 0 ; i < n ; i++ )
    {
        for ( int k = 0 ; k < m ; k++ )
        {
            if ( a[i][k] == '*' ) ans++ ;
            {
                while ( a[i][k] == '*' ) k++ ;
            }
        }
    }
    cout << ans ;
    return 0 ;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 312 KB Output is correct
6 Correct 0 ms 204 KB Output is correct
7 Incorrect 0 ms 204 KB Output isn't correct
8 Incorrect 1 ms 204 KB Output isn't correct
9 Incorrect 0 ms 316 KB Output isn't correct
10 Incorrect 0 ms 332 KB Output isn't correct