結果
| 問題 | No.2246 1333-like Number |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-24 10:35:09 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 324 bytes |
| 記録 | |
| コンパイル時間 | 461 ms |
| コンパイル使用メモリ | 79,360 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-30 01:26:41 |
| 合計ジャッジ時間 | 1,565 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}