結果
| 問題 |
No.2246 1333-like Number
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-03-24 10:34:30 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 323 bytes |
| コンパイル時間 | 530 ms |
| コンパイル使用メモリ | 66,476 KB |
| 最終ジャッジ日時 | 2025-02-11 16:43:40 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 WA * 7 |
ソースコード
#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;
}