![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
题解
经常有点小迷糊
此心不动,随机而动
展开
-
1132:石头剪子布(c++代码)保证正确!!!!!!!!!✔
写在前面的话:抄袭可耻!!!抄袭不可耻 开玩笑了#include <iostream>using namespace std;int flag(string num1, string num2){ if ((num1 == "Rock" && num2 == "Scissors") || (num1 == "Scissors" && num2 == "Paper") || (num1 == "Paper" && num2 == "Rock原创 2020-06-29 12:41:39 · 1782 阅读 · 0 评论 -
1133:输出亲朋字符串,保证正确!保证AC!!!
#include <iostream>#include <string.h>#include <cstring>using namespace std;int main(){ char s; char str1[1024]; cin.get(str1, 1024); for (int i = 0; i < strlen(str1); i++) { if (i == strlen(str1) - 1) { s = str1[i] +原创 2020-06-29 10:16:54 · 1273 阅读 · 0 评论 -
信息学奥赛一本通1131:基因相关性
#include <iostream>#include <string.h>#include <cstring>using namespace std;char str1[1024];char str2[1024];double n;double num = 0;double sum = 0;int main() { cin >> n >> str1 >> str2; for (int i = 0; i <原创 2020-06-29 09:08:56 · 1409 阅读 · 1 评论