2021年10月24日16時04分14秒に更新されたバージョンを表示しています.
最新のページはこちらをご覧ください.
LeetCode Weekly Contest 264
問題文
省略
省略
C++に変換後のコードはこちら
#define main dummy_main
{}
#undef main
int fg, sz, arr[1000], cnt[10];
class Solution {
public:
int nextBeautifulNumber(int n) {
if(!fg){
fg = 1;
rep(i,1,1.3d6){
DigitHist(i,cnt);
rep(j,10) if(cnt[j] && cnt[j] != j) break_continue;
arr[sz++] = i;
}
}
return *lower_bound(arr, arr+sz, n+1);
}
};
Current time: 2024年05月11日23時56分16秒
Last modified: 2021年10月24日16時04分14秒 (by laycrs)
Tags: Competitive_Programming_Incomplete LeetCode
トップページに戻る
Logged in as: unknown user (not login)