結果

問題 No.3725 Exploit Wall
コンテスト
ユーザー eiram
提出日時 2026-09-19 14:45:03
言語 C++17(gcc12)
(gcc 12.4.0 + boost 1.92.0 + ACL)
コンパイル:
g++-12 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 1,384 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,248 ms
コンパイル使用メモリ 263,764 KB
実行使用メモリ 9,924 KB
最終ジャッジ日時 2026-09-19 14:45:15
合計ジャッジ時間 7,719 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge5_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 59
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;

#define INF 1LL<<60
#define MOD 998244353
#define MMOD 1000000007
using mint=modint998244353;

using ll=long long;
using ull=unsigned long long;
using ld=long double;
template<typename T> using vc=vector<T>;
template<typename T> using vv=vc<vc<T>>;
using vl=vector<ll>;
using vvl=vv<ll>;
using vs=vc<string>;
using vvs=vv<string>;
using vb=vc<bool>;
using vvb=vv<bool>;
using lP=pair<ll,ll>;
using vlp=vc<lP>;

template<typename T> bool chmin(T& a, T b){if(a > b){a = b; return true;} return false;}
template<typename T> bool chmax(T& a, T b){if(a < b){a = b; return true;} return false;}

#define YES cout<<"Yes"<<endl
#define NO cout<<"No"<<endl
#define YN {cout<<"Yes"<<endl;}else{cout<<"No"<<endl;}
#define all(a) a.begin(),a.end()
#define debug(var) cout << #var << " = " << var << endl;

template<class T> struct Edge {
    ll from;
    ll to;
    T val;
    Edge(ll f, ll t,T v) : from(f), to(t), val(v) { }
};
template<class T> using Graph=vector<vector<Edge<T>>>;

//下、上、右、左の順番
vl dx={0,0,1,-1,1,1,-1,-1};
vl dy={1,-1,0,0,1,-1,1,-1};

int main() {
    ll n;
    cin>>n;

    ll now=0;
    for(ll i=0;i<n;i++){
        for(ll j=0;j<n;j++){
            if(now%2==0) cout<<'.';
            else cout<<'#';
            now^=1;
        }
        cout<<"\n";
    }
}
0