社区讨论
why 80?
P1885Moo参与者 3已保存回复 4
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 4 条
- 当前快照
- 1 份
- 快照标识符
- @lo29fu3i
- 此快照首次捕获于
- 2023/10/23 10:10 2 年前
- 此快照最后确认于
- 2023/11/03 10:22 2 年前
CPP
#include <bits/stdc++.h>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <deque>
using namespace std;
string process(int n,string str,int index){
string st = str;
if(st.size()>=n){
return st;
}
string s = "ooo";
for(int i=0;i<index;i++){
s+='o';
}
index++;
return process(n,str+'m'+s+str,index);
}
int main(){
long long n;
cin >> n;
string s = process(n,"moo",0);
cout << s[n-1] << endl;
return 0;
}
回复
共 4 条回复,欢迎继续交流。
正在加载回复...