結果
| 問題 | No.2246 1333-like Number |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-17 22:24:15 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 404 bytes |
| コンパイル時間 | 1,891 ms |
| コンパイル使用メモリ | 196,612 KB |
| 最終ジャッジ日時 | 2025-02-11 13:32:10 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
const int mod=998244353;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
cin>>N;
N-=1;
string ans="";
vector<array<int,2>>A;
for(int i=1;i<9;i++){
for(int j=i+1;j<=9;j++){
A.push_back({i,j});
}
}
ans+=A[N%36][0]+'0';
ans+=A[N%36][1]+'0';
for(int i=0;i<N/36;i++)ans+=A[N%36][1]+'0';
cout<<ans<<'\n';
}