結果
| 問題 | No.3625 Find Superfibonacci Number |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-14 22:39:18 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| + 168µs | |
| コード長 | 2,156 bytes |
| 記録 | |
| コンパイル時間 | 2,408 ms |
| コンパイル使用メモリ | 248,488 KB |
| 実行使用メモリ | 9,340 KB |
| 最終ジャッジ日時 | 2026-08-14 22:39:22 |
| 合計ジャッジ時間 | 3,748 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ld = long double;
using ll = long long;
using ull = unsigned long long;
using VB = vector<bool>;
using VVB = vector<VB>;
using VC = vector<char>;
using VVC = vector<VC>;
using VI = vector<int>;
using VVI = vector<VI>;
using VVVI = vector<VVI>;
using VL = vector<ll>;
using VVL = vector<VL>;
using VVVL = vector<VVL>;
using VD = vector<ld>;
using VVD = vector<VD>;
using VT = vector<string>;
using VVT = vector<VT>;
using P = pair<ll, ll>;
using VP = vector<P>;
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, a, b) for (ll i = a; i < (ll)(b); i++)
#define ALL(a) (a).begin(),(a).end()
constexpr int INF = 1001001001;
constexpr ll LINF = 1001001001001001001ll;
//constexpr ll LINF = 8e18;
//constexpr int DX[] = {-1, -1, 0, 0, 1, 1};
//constexpr int DY[] = {-1, 0, -1, 1, 0, 1};
constexpr int DX[] = {1, 0, -1, 0, 0, 0};
constexpr int DY[] = {0, 1, 0, -1, 0, 0};
//constexpr int DZ[] = {0, 0, 0, 0, 1, -1};
template< typename T1, typename T2>
inline bool chmax(T1 &a, T2 b) {return a < b && (a = b, true); }
template< typename T1, typename T2>
inline bool chmin(T1 &a, T2 b) {return a > b && (a = b, true); }
using mint = modint998244353;
//using mint = modint1000000007;
using VM = vector<mint>;
using VVM = vector<VM>;
using VVVM = vector<VVM>;
using VVVVM = vector<VVVM>;
inline ll divceil(ll x, ll y) {
if(x >= 0) return (x + y - 1) / y;
else return -((-x) / y);
}
inline ll divfloor(ll x, ll y) {
if(x >= 0) return x / y;
else return -((- x + y - 1) / y);
}
int main() {
ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int t;
cin >> t;
while (t--) {
int k;
cin >> k;
if (k < 18) {
if (k % 2) {
cout << k / 2 + 1 << 0 << k / 2 << endl;
} else {
cout << k / 2 + 1 << 0 << k / 2 - 1 << endl;
}
} else {
int q = (k - 17) / 9, r = (k - 17) % 9;
if (r) cout << r;
cout << 908;
REP(i, q) cout << 9;
cout << endl;
}
}
}