結果
| 問題 | No.3649 Top View of Jenga |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-28 21:24:15 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 804µs | |
| コード長 | 431 bytes |
| 記録 | |
| コンパイル時間 | 1,250 ms |
| コンパイル使用メモリ | 209,500 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-28 21:24:27 |
| 合計ジャッジ時間 | 2,502 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
long long N; cin >> N;
long long add = N/6*2; N %= 6;
for(int i=0; i<3; i++,cout<<endl) for(int k=0; k<3; k++){
if(k) cout << " ";
long long now = add;
if(N >= 3){
now++;
now += i<(N-3);
}
else now += k<N;
cout << now;
}
}