結果
| 問題 | No.3625 Find Superfibonacci Number |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-15 19:53:25 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 365 bytes |
| 記録 | |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 96,232 KB |
| 実行使用メモリ | 94,592 KB |
| 最終ジャッジ日時 | 2026-08-15 19:53:38 |
| 合計ジャッジ時間 | 2,766 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 13 |
ソースコード
t=int(input()) for _ in range(t): n=int(input()) if n<=16: for i in range(100,1000): Z=[] for j in range(3): Z.append(i%10) i//=10 if sum(Z)==n: if Z[2]>Z[1]+Z[0]: Ans=Z break else: Ans=[-1] else: Ans=[9,0,8] n-=17 while n>9: n-=9 Ans.append(9) Ans.append(n) while Ans!=[]: print(Ans.pop(),end="") print()