Submission #74647074
Source Code Expand
#include <bits/stdc++.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <numeric>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <stack>
#include <deque>
#include <fstream>
#include <iterator>
#include <set>
#include <map>
#include <unordered_map>
#include <iomanip>
#include <cctype>
#include <string>
#include <cassert>
#include <set>
#include <bitset>
#include <unordered_set>
#include <numeric>
#define all(a) a.begin(), a.end()
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define pb push_back
#define ppi pair<int,pair<int,int>>
#define int int64_t
using namespace std;
// /\_/\
// (= ._.)
// / > \>
// encouraging cat
const int INF = 10000000000000000;
//const int mod = 1000000007;
const int mod = 998244353;
const int MAXN = 200005;
//ifstream fin('xor.in');
//ofstream fout('xor.out');
signed main()
{
int n,m;
cin >> n >> m;
for (int i = 0;i < n;i++)
{
for (int j = 0;j < m;j++)
{
if (i == 0 || i == n - 1 || j == 0 || j == m - 1)
{
cout << "#";
}
else
{
cout << ".";
}
}
cout << '\n';
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Draw Frame |
| User | litvinas |
| Language | C++23 (GCC 15.2.0) |
| Score | 200 |
| Code Size | 1308 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3624 KiB |
Compile Error
./Main.cpp:32:1: warning: multi-line comment [-Wcomment]
32 | // /\_/\
| ^
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 | 1 ms | 3544 KiB |
| 00_sample_01.txt | AC | 1 ms | 3624 KiB |
| 01_random_02.txt | AC | 1 ms | 3504 KiB |
| 01_random_03.txt | AC | 1 ms | 3424 KiB |
| 01_random_04.txt | AC | 1 ms | 3556 KiB |
| 01_random_05.txt | AC | 1 ms | 3600 KiB |
| 01_random_06.txt | AC | 1 ms | 3480 KiB |
| 01_random_07.txt | AC | 1 ms | 3424 KiB |
| 01_random_08.txt | AC | 1 ms | 3556 KiB |
| 01_random_09.txt | AC | 1 ms | 3388 KiB |
| 01_random_10.txt | AC | 1 ms | 3596 KiB |
| 01_random_11.txt | AC | 1 ms | 3480 KiB |
| 01_random_12.txt | AC | 1 ms | 3568 KiB |
| 01_random_13.txt | AC | 1 ms | 3600 KiB |