結果
問題 | No.2038 Strange Arrange |
ユーザー | olphe |
提出日時 | 2022-08-12 22:15:53 |
言語 | C++17 (gcc 13.2.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 823 bytes |
コンパイル時間 | 1,273 ms |
コンパイル使用メモリ | 127,380 KB |
実行使用メモリ | 4,348 KB |
最終ジャッジ日時 | 2023-10-24 23:14:16 |
合計ジャッジ時間 | 1,693 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,348 KB |
testcase_01 | AC | 1 ms
4,348 KB |
testcase_02 | AC | 2 ms
4,348 KB |
testcase_03 | AC | 2 ms
4,348 KB |
testcase_04 | AC | 2 ms
4,348 KB |
ソースコード
#include "iostream" #include "climits" #include "list" #include "queue" #include "stack" #include "set" #include "functional" #include "algorithm" #include "string" #include "map" #include "unordered_map" #include "unordered_set" #include "iomanip" #include "cmath" #include "random" #include "bitset" #include "cstdio" #include "numeric" #include "cassert" #include "ctime" using namespace std; //constexpr long long int MOD = 1000000007; constexpr long long int MOD = 998244353; constexpr double EPS = 1e-8; //int N, M, K, T, H, W, L, R; long long int N, M, K, T, H, W, L, R; int main() { ios::sync_with_stdio(false); cin.tie(0); cin >> N; string s; for (int i = 2; i < 10; i++) { for (int j = 0; j < 1 << (i-1); j++) { s.push_back('1'); s.push_back('0' + i); } } s.resize(N); cout << s << endl; }