Submission #74655666


Source Code Expand

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using ld=long double;
using sti=string;
ll inf=9223372036854775807,mod=998244353;//llの最大値,mod;
ll flg=1,ans=0,sum=0,cnt=0,i=0,j=0,k=0,l=0,mx=-1*inf,mn=inf,len=0;
ll dx[4]={1,0,-1,0},dy[4]={0,1,0,-1};
ll dxx[8]={1,1,1,0,-1,-1,-1,0},dyy[8]={-1,0,1,1,1,0,-1,-1};
template<class T> using vc=vector<T>;
template<class T,class TT> using pa=pair<T,TT>;
template<class T> using pq=priority_queue<T>;//大きい順;
template<class T> using rpq=priority_queue<T, vc<T>, greater<T>>;//小さい順;
#define F first
#define S second
#define ed cout<<endl;
#define yes cout<<"yes"<<endl;
#define no cout<<"No"<<endl;
#define as if(flg==0)	cout<<"Yes"<<endl;	else cout<<"No"<<endl;
#define asa(a) if(!flg)	{cout<<"Yes"<<endl;cout<<a<<endl;}	else cout<<"No"<<endl;
#define pb push_back
#define pob pop_back
#define sr(a) sort(a)
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define nall(a,b) a,a+b
#define rnall(a,b) a,a+b,greater<int>()
#define rep(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++)
#define repp(i,a,b) for(ll i=(ll)(a);i<=(ll)(b);i++)
#define rrep(i,a,b) for(ll i=(ll)(b)-1;i>=(ll)(a);i--)
#define rrepp(i,a,b) for(ll i=(ll)(b);i>=(ll)(a);i--)
#define reep(i,a,b,c) for(ll i=(ll)(a);i<(ll)(b);i+=(ll)(c))
#define reepp(i,a,b,c) for(ll i=(ll)(a);i<=(ll)(b);i+=(ll)
#define rreep(i,a,b,c) for(ll i=(ll)(b)-1;i>=(ll)(a);i-=(ll)(c))
#define rreepp(i,a,b,c) for(ll i=(ll)(b);i>=(ll)(a);i-=(ll)(c))
#define rev(x) reverse(x.begin(),x.end())
using vl=vc<ll>;
using vs=vc<sti>;
using mll=map<ll,ll>;
using msl=map<sti,ll>;
using mss=map<sti,sti>;
using mls=map<ll,sti>;
//puts(x==2 ? "1":"0");
int main()
{
	ll h,w;
    cin>>h>>w;
    rep(i,0,h){
        rep(j,0,w){
            if(i == 0||j == 0 || i == h-1 || j == w-1){
                cout<<"#";
            }
            else{
                cout<<".";
            }
        }
        ed
    }
	return 0;
}

Submission Info

Submission Time
Task B - Draw Frame
User yutoman2025
Language C++23 (GCC 15.2.0)
Score 200
Code Size 2002 Byte
Status AC
Exec Time 1 ms
Memory 3616 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 1 ms 3400 KiB
00_sample_01.txt AC 1 ms 3400 KiB
01_random_02.txt AC 1 ms 3412 KiB
01_random_03.txt AC 1 ms 3552 KiB
01_random_04.txt AC 1 ms 3444 KiB
01_random_05.txt AC 1 ms 3400 KiB
01_random_06.txt AC 1 ms 3616 KiB
01_random_07.txt AC 1 ms 3440 KiB
01_random_08.txt AC 1 ms 3480 KiB
01_random_09.txt AC 1 ms 3392 KiB
01_random_10.txt AC 1 ms 3492 KiB
01_random_11.txt AC 1 ms 3552 KiB
01_random_12.txt AC 1 ms 3436 KiB
01_random_13.txt AC 1 ms 3400 KiB