結果
問題 |
No.2246 1333-like Number
|
ユーザー |
![]() |
提出日時 | 2024-01-08 19:06:18 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 412 bytes |
コンパイル時間 | 1,955 ms |
コンパイル使用メモリ | 192,840 KB |
最終ジャッジ日時 | 2025-02-18 16:31:31 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
#include<bits/stdc++.h> using namespace std; int N; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cin>>N; N--; int sz=N/36,r=N%36; int k=12; while(r) { k++; if(0<k/10&&k/10<k%10)r--; } string ans=""; ans.push_back(char('0'+k/10)); ans.push_back(char('0'+k%10)); while(sz--)ans.push_back(char('0'+k%10)); cout << ans << endl; }