結果

問題 No.1732 ~サンプルはちゃんと見て!~ 16進数と8進数(2)
ユーザー googol_S0googol_S0
提出日時 2021-11-05 22:46:02
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 319 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 65,536 KB
最終ジャッジ日時 2024-04-24 06:39:24
合計ジャッジ時間 1,260 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

for t in range(int(input())):
  N=int(input())
  A=''
  if N%3==1:
    A='12'
  elif N%3==2:
    A='252'
  else:
    A=''
  A+='5252'*(N//3)
  if len(A)%7:
    print(-1)
    continue
  x=len(A)
  S=''
  while x>=28:
    x-=28
    S+='ACCACCCCCCCCABACAAFFE'
  T=''
  while x:
    T+=X[x//7-1]
    x-=7
  S=T+S
  print(S)
0