主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
专业课程
讨论区
兑换中心
登录
注册
发布
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
smq
2023年9月15日 17:16
magical string 题解:
P1896
回复 0
|
赞 0
|
浏览 337
#include<bits/stdc++.h> using namespace std; int main(){ int n;cin>>n; n--; while(n--){ string str;cin>>str; int sz=str.size();int res=0; for(int i=0;i<sz;i++){ if(i<sz/2&&str[i]=='<') res++; if(i>=sz/2&&str[i]=='>') res+...
题目
magical string
题解数量
1
发布题解
热门题解
1
magical string 题解: