Submission #11384069


Source Code Expand

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <iomanip>
using namespace std;

int main()
{
    int h, w;
    cin >> h >> w;
    vector<string> vec(h);
    
    for(int i = 0; i < h; i++){
        cin >> vec.at(i);
    }

    for (int j = 0; j < h+2; j++)
    {
        cout << "#";
        if(j == 0 || j == h + 1){
            for(int k = 0; k < w; k++){
                cout << "#";
            }
        }
        else cout << vec.at(j - 1);

        cout << "#" << endl;
    }
    
    return 0;

}

Submission Info

Submission Time
Task B - Picture Frame
User clock_v
Language C++14 (Clang 3.8.0)
Score 200
Code Size 592 Byte
Status AC
Exec Time 2 ms
Memory 512 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 10
Set Name Test Cases
Sample 0_00.txt, 0_01.txt
All 0_00.txt, 0_01.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt
Case Name Status Exec Time Memory
0_00.txt AC 2 ms 512 KB
0_01.txt AC 1 ms 256 KB
1_00.txt AC 1 ms 256 KB
1_01.txt AC 1 ms 256 KB
1_02.txt AC 1 ms 256 KB
1_03.txt AC 2 ms 256 KB
1_04.txt AC 1 ms 256 KB
1_05.txt AC 1 ms 256 KB
1_06.txt AC 2 ms 256 KB
1_07.txt AC 1 ms 256 KB