Submission #1851175
Source Code Expand
#include <iostream> #include <vector> int main(int argc, char const *argv[]) { int H,W; std::cin >> H >> W; std::vector<char> words; for(int height = 0 ; height < H ; height++) { for(int width = 0 ; width < W ; width++ ) { char word; std::cin >> word; words.push_back(word); } } for(int width = 0 ; width < W + 2 ; width++ ) { std::cout << "#"; } putchar('\n'); for(int height = 0 ; height < H ; height++) { std::cout << "#"; for(int width = 0 ; width < W ; width++ ) { std::cout << words[W*height+width]; } std::cout << "#" << '\n'; } for(int width = 0 ; width < W + 2 ; width++ ) { std::cout << "#"; } putchar('\n'); return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - Picture Frame |
User | veryimportant9 |
Language | C++14 (Clang 3.8.0) |
Score | 200 |
Code Size | 877 Byte |
Status | AC |
Exec Time | 5 ms |
Memory | 888 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
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 | 5 ms | 888 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 | 3 ms | 256 KB |
1_04.txt | AC | 1 ms | 256 KB |
1_05.txt | AC | 2 ms | 256 KB |
1_06.txt | AC | 2 ms | 256 KB |
1_07.txt | AC | 1 ms | 256 KB |