提出 #50334125
ソースコード 拡げる
//....................................<In the name of Allah>...............................//
//.................................<Bismillahir Rahmanir Rahim>...................................//
// Author : Riaj Uddin
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
#include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
typedef tree<long long, null_type, less_equal<long long>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
typedef long long ll;
typedef vector<ll> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef pair<ll, ll> pii;
typedef pair<double, double> pdd;
typedef vector<pii> vii;
typedef vector<pair<ll, ll>> vli;
typedef double dl;
typedef map<ll, ll> ck;
#define lower(a, b) lower_bound((a).begin(), (a).end(), b) - (a).begin()
#define mem(a, b) memset(a, b, sizeof(a));
#define sz1 cout << endl;
#define pb push_back
#define all(a) (a).begin(), (a).end()
#define rall(a) (a).rbegin(), (a).rend()
#define MOD 998244353
#define infll 0n7f7f7f7f7f7f7f7f
#define fraction(a) \
cout.unsetf(ios::floatfield); \
cout.psolveision(a); \
cout.setf(ios::fined, ios::floatfield);
///////////bit-manipulation///////////////
#define MSB(mask) 63 - __builtin_clzll(mask)
#define LSB(mask) __builtin_ctzll(mask)
#define ONE(mask) __builtin_popcountll(mask)
#define CHECK(mask, bit) (mask & (1LL << bit))
#define ON(mask, bit) (mask | (1LL << bit))
#define OFF(mask, bit) (mask & ~(1LL << bit))
#define CHANGE(mask, bit) (mask ^ (1LL << bit))
////////powMod---custom//////
//////////////
ll power(ll x, ll y, ll p)
{
ll res = 1;
x = x % p;
while (y > 0)
{
if (y & 1)
res = (res * x) % p;
y = y >> 1;
x = (x * x) % p;
}
return res;
}
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
int tc = 1;
// cin >> tc;
while (tc--)
{
int n;
cin >> n;
vector<char> v(2 * n + 2, '1');
for (int i = 2; i < 2 * n + 1; i += 2)
v[i] = '0';
for (int i = 1; i <= 2 * n + 1; i++)
cout << v[i];
cout << "\n";
}
return 0;
}
提出情報
| 提出日時 |
|
| 問題 |
A - Print 341 |
| ユーザ |
Hridoy_ |
| 言語 |
C++ 20 (gcc 12.2) |
| 得点 |
100 |
| コード長 |
2364 Byte |
| 結果 |
AC |
| 実行時間 |
1 ms |
| メモリ |
3604 KiB |
ジャッジ結果
| セット名 |
Sample |
All |
| 得点 / 配点 |
0 / 0 |
100 / 100 |
| 結果 |
|
|
| セット名 |
テストケース |
| Sample |
example0.txt, example1.txt, example2.txt |
| All |
000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, example0.txt, example1.txt, example2.txt |
| ケース名 |
結果 |
実行時間 |
メモリ |
| 000.txt |
AC |
1 ms |
3524 KiB |
| 001.txt |
AC |
1 ms |
3392 KiB |
| 002.txt |
AC |
1 ms |
3524 KiB |
| 003.txt |
AC |
1 ms |
3480 KiB |
| 004.txt |
AC |
1 ms |
3416 KiB |
| 005.txt |
AC |
1 ms |
3412 KiB |
| 006.txt |
AC |
1 ms |
3604 KiB |
| 007.txt |
AC |
1 ms |
3456 KiB |
| 008.txt |
AC |
1 ms |
3380 KiB |
| example0.txt |
AC |
1 ms |
3604 KiB |
| example1.txt |
AC |
1 ms |
3392 KiB |
| example2.txt |
AC |
1 ms |
3416 KiB |