結果
| 問題 |
No.2246 1333-like Number
|
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2023-03-23 14:09:35 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 323 bytes |
| コンパイル時間 | 1,690 ms |
| コンパイル使用メモリ | 172,812 KB |
| 実行使用メモリ | 12,172 KB |
| 最終ジャッジ日時 | 2024-09-18 15:28:03 |
| 合計ジャッジ時間 | 5,258 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 TLE * 5 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
int N;
cin >> N;
queue<string> q;
for( int i = 1; i < 10; i++ ) {
for( int j = i + 1; j < 10; j++ ) q.push( to_string(i * 10 + j) );
}
string ans;
while( N ) {
ans = q.front();
q.pop();
q.push( ans + ans.back() );
N--;
}
cout << ans << endl;
}
forest3