結果

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

テストケース

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

ソースコード

diff #

X=['ABDCC','AAFCC','ACADE']
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:
    S+=X[(x%21)//7-1]
    x-=7
  print(S)
0