結果
問題 | No.2246 1333-like Number |
ユーザー |
|
提出日時 | 2023-03-17 21:26:20 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 2,086 bytes |
コンパイル時間 | 1,285 ms |
コンパイル使用メモリ | 167,256 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-18 10:12:55 |
合計ジャッジ時間 | 2,110 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
#line 2 "/home/penguin8331/vscode/library/template/template.hpp" #include <bits/stdc++.h> #line 3 "/home/penguin8331/vscode/library/template/macro.hpp" #define pb push_back #define mp make_pair #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define elif else if #define updiv(N, X) (((N) + (X) - (1)) / (X)) #define sigma(a, b) ((a + b) * (b - a + 1) / 2) #line 3 "/home/penguin8331/vscode/library/template/alias.hpp" using ll = long long; using ld = long double; using pii = std::pair<int, int>; using pll = std::pair<ll, ll>; constexpr int inf = 1 << 30; constexpr ll INF = 1LL << 60; constexpr int dx[] = {1, 0, -1, 0, 1, -1, 1, -1}; constexpr int dy[] = {0, 1, 0, -1, 1, 1, -1, -1}; constexpr int mod = 998244353; constexpr int MOD = 1e9 + 7; #line 3 "/home/penguin8331/vscode/library/template/func.hpp" template <typename T> inline bool chmax(T& a, T b) { return ((a < b) ? (a = b, true) : (false)); } template <typename T> inline bool chmin(T& a, T b) { return ((a > b) ? (a = b, true) : (false)); } #line 3 "/home/penguin8331/vscode/library/template/util.hpp" struct IOSetup { IOSetup() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); std::cout.tie(0); std::cout << std::fixed << std::setprecision(12); std::cerr << std::fixed << std::setprecision(12); } } IOSetup; #line 1 "/home/penguin8331/vscode/library/template/debug.hpp" #ifdef LOCAL #include <algo/debug.hpp> #else #define debug(...) #endif #line 8 "/home/penguin8331/vscode/library/template/template.hpp" using namespace std; #line 2 "A.cpp" int main() { //13 33333 //abbbb..... int N; cin>>N; //ab -> int cnt=0; for(int i=0;i<1e9;i++){ for(int j=1;j<9;j++){ for(int k=j+1;k<=9;k++){ cnt++; if(cnt==N){ cout<<j<<k; for(int l=0;l<i;l++){ cout<<k; } cout<<endl; return 0; } } } } }