Submission #74716615
Source Code Expand
using System;
public class Program{
static void Main(string[]args){
string[]input = Console.ReadLine().Split(' ');
int h = int.Parse(input[0]);
int w = int.Parse(input[1]);
for(int i = 0;i<h;i++){
for(int j =0;j<w;j++){
if(i==0||i==h-1||j==0||j==w-1){
Console.Write("#");
}
else{
Console.Write(".");
}
}
Console.WriteLine();
}
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Draw Frame |
| User | naoan |
| Language | C# 13.0 (.NET 9.0.8) |
| Score | 200 |
| Code Size | 442 Byte |
| Status | AC |
| Exec Time | 28 ms |
| Memory | 25328 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 28 ms | 25204 KiB |
| 00_sample_01.txt | AC | 26 ms | 25048 KiB |
| 01_random_02.txt | AC | 26 ms | 25328 KiB |
| 01_random_03.txt | AC | 26 ms | 25308 KiB |
| 01_random_04.txt | AC | 26 ms | 25092 KiB |
| 01_random_05.txt | AC | 25 ms | 25308 KiB |
| 01_random_06.txt | AC | 27 ms | 25084 KiB |
| 01_random_07.txt | AC | 25 ms | 25084 KiB |
| 01_random_08.txt | AC | 26 ms | 24996 KiB |
| 01_random_09.txt | AC | 25 ms | 25084 KiB |
| 01_random_10.txt | AC | 25 ms | 25088 KiB |
| 01_random_11.txt | AC | 25 ms | 25040 KiB |
| 01_random_12.txt | AC | 25 ms | 25088 KiB |
| 01_random_13.txt | AC | 25 ms | 25024 KiB |