Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
8143 | D班-西瓜 | s01串 | C++ | Accepted | 100 | 1 MS | 272 KB | 304 | 2025-03-26 14:04:29 |
#include <bits/stdc++.h> using namespace std; int main() { int n; string s="0",s1; cin >> n; for(int i = 0; i<n; i++) { for(int j = 0; j<s.size(); j++) { if(s[j]=='0') { s1 += "1"; } else { s1 += "01"; } } s = s1; s1 = ""; } cout << s; return 0; }