Submission #74664573


Source Code Expand

import java.util.*;
class Main {
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int row=sc.nextInt();
    int column=sc.nextInt();
    // row=0 || row=row-1(last) paint # 
    // column=0 || column=colum-1(last) paint #
    
    for(int i=0;i<row;i++){
      for(int j=0;j<column;j++){
        if(i==0 || i==row-1 || j==0 || j==column-1){
          System.out.print("#");
        }else{
          System.out.print(".");
        }
      }
      System.out.println();
    }
  }
}

Submission Info

Submission Time
Task B - Draw Frame
User renu_
Language Java24 (OpenJDK 24.0.2)
Score 200
Code Size 536 Byte
Status AC
Exec Time 67 ms
Memory 41204 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 14
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 67 ms 40524 KiB
00_sample_01.txt AC 62 ms 40656 KiB
01_random_02.txt AC 61 ms 40752 KiB
01_random_03.txt AC 61 ms 40376 KiB
01_random_04.txt AC 64 ms 40732 KiB
01_random_05.txt AC 63 ms 40716 KiB
01_random_06.txt AC 62 ms 40464 KiB
01_random_07.txt AC 61 ms 41204 KiB
01_random_08.txt AC 60 ms 40364 KiB
01_random_09.txt AC 60 ms 40592 KiB
01_random_10.txt AC 59 ms 40772 KiB
01_random_11.txt AC 60 ms 40212 KiB
01_random_12.txt AC 58 ms 40224 KiB
01_random_13.txt AC 59 ms 40812 KiB