Submission #76930497


Source Code Expand

#include<iostream>
#include<vector>
#include<algorithm>
#include<sstream>

using namespace std;

int main(){
	int height, width;
    cin >> height >> width;

    // h:たて、w:横
    string line;
    int count = 0;
    for(int i = 0; i < height; i++){
        cin >> line;
        for(int j = 0; j < width; j++){
            if(line[j] == '#'){
                count++;
            }
        }
    }

    cout << count << endl;
	return 0;
}

Submission Info

Submission Time
Task B - Pawn on a Grid
User moonlight625
Language C++23 (Clang 21.1.0)
Score 100
Code Size 468 Byte
Status AC
Exec Time 1 ms
Memory 2868 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 12
Set Name Test Cases
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt
Case Name Status Exec Time Memory
example_00.txt AC 1 ms 2748 KiB
example_01.txt AC 1 ms 2836 KiB
example_02.txt AC 1 ms 2732 KiB
hand_00.txt AC 1 ms 2840 KiB
hand_01.txt AC 1 ms 2852 KiB
hand_02.txt AC 1 ms 2840 KiB
random_00.txt AC 1 ms 2868 KiB
random_01.txt AC 1 ms 2808 KiB
random_02.txt AC 1 ms 2836 KiB
random_03.txt AC 1 ms 2868 KiB
random_04.txt AC 1 ms 2856 KiB
random_05.txt AC 1 ms 2732 KiB