結果
問題 |
No.1264 010
|
ユーザー |
![]() |
提出日時 | 2023-08-28 17:09:56 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 454 bytes |
コンパイル時間 | 1,010 ms |
コンパイル使用メモリ | 102,988 KB |
最終ジャッジ日時 | 2025-02-16 15:22:16 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 WA * 1 |
ソースコード
#include<iostream> #include<map> #include<vector> #include <algorithm> #include<math.h> #include <iomanip> #include<set> #include <numeric> #include<string> using namespace std; int main() { int n; cin >> n; string s; if (n == 0) cout << 1 << endl; else if (n == 1) cout << "101" << endl; else { for (int i= 0; i < n; i++){ s = '0' + s; } s += "101"; cout << s << endl; } }