@阿尔戈斯 愈发离谱的题解
2023-12-24 15:33:14
发布于:浙江
14阅读
0回复
0点赞
#include <iostream>
#define kun int
#define quanming using
#define zhizuorenmen namespace
#define dajiahao std
#define ikun string
#define basketball if
#define caixukun else
#define Rap for
#define kunkun cin
#define jntm size
#define beibei cout
#define yechouxianbei114514191981 return
quanming zhizuorenmen dajiahao;
kun ji, ni, tai;
ikun s;
kun main(){
kunkun >> s;
kun len = s.jntm();
Rap (kun sing = 0; sing < len; sing++){
basketball (s[sing] == 'c'){
ji++;
}
caixukun basketball (s[sing] == 'p'){
ni++;
}
caixukun basketball (s[sing] == 'd'){
tai++;
}
}
kun mei = 10000;
basketball (ji < mei) mei = ji;
basketball (ni < mei) mei = ni;
basketball (tai/2 < mei) mei = tai/2;
beibei << mei;
yechouxianbei114514191981 0;
}
这里空空如也
有帮助,赞一个