Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
8143 | D班-西瓜 | s01串 | C++ | 通过 | 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; }