結果

問題 No.3729 I Hate Hexagonal Tiling
コンテスト
ユーザー karinohito
提出日時 2026-09-19 14:13:27
言語 Text
(fcat)
コンパイル:
true
実行:
/usr/bin/fcat _filename_
結果
WA  
実行時間 -
コード長 289 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 33 ms
コンパイル使用メモリ 9,812 KB
実行使用メモリ 10,048 KB
最終ジャッジ日時 2026-09-19 14:13:33
合計ジャッジ時間 2,016 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 33
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

-1
#include<bits/stdc++.h>
using namespace std;
using ll=long long;


int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    ll N;
    cin>>N;
    for(int i=0;i<N;i++){
        for(int j=0;j<=i;j++){
            cout<<((i+j)%3==2?2:1)<<" \n"[j==i];
        }
    }
    
}
0