結果
問題 | No.2246 1333-like Number |
ユーザー |
👑 |
提出日時 | 2023-03-24 10:35:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 413 ms |
コンパイル使用メモリ | 67,208 KB |
最終ジャッジ日時 | 2025-02-11 16:43:43 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
#include <iostream> using namespace std; int main(){ int n;cin>>n; int digit = (n+35)/36; int k = (n+35)%36; int nw = 8; int x = 1; while(k-nw >= 0){ k -= nw; nw--; x++; } cout << x; for(int i = 0; digit > i; i++){ cout << x+k+1; } cout << endl; }