結果

問題 No.1732 ~サンプルはちゃんと見て!~ 16進数と8進数(2)
ユーザー H20
提出日時 2021-10-24 16:33:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 407 ms
コンパイル使用メモリ 82,320 KB
実行使用メモリ 53,976 KB
最終ジャッジ日時 2024-11-06 11:50:00
合計ジャッジ時間 1,305 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
S = 'ccabcceacccccabebdccc'*10
for _ in range(T):
    N = int(input())
    if N%21==0 or N%21==5 or N%21==10:
        print(S[len(S)-N::])
    else:
        print('-1 ')
0