結果

問題 No.3649 Top View of Jenga
コンテスト
ユーザー sig
提出日時 2026-08-28 21:24:38
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 84 ms / 2,000 ms
+ 930µs
コード長 362 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 250 ms
コンパイル使用メモリ 96,232 KB
実行使用メモリ 80,128 KB
最終ジャッジ日時 2026-08-28 21:24:44
合計ジャッジ時間 3,729 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#t = int(input())
tt = 1
import random
R = random.randint(1, 1 << 60)
for _ in range(tt):
  n = int(input())
  ko = n//3
  res = n%3
  ans = [[ko]*3 for _ in range(3)]
  if ko%2:
    for i in range(res):
      for j in range(3):
        ans[i][j] += 1
  else:
    for i in range(res):
      for j in range(3):
        ans[j][i] += 1
  for i in ans:
    print(*i)
0