zzkca930110 2008-11-08 07:34:00
点我顶贴
收藏
删除
状态题目:生物课学基因
题目编号:174-生物课学基因 查看该题
状态: Unaccepted
测评机: Xeost[5]
得分: 0分
提交日期: 2008-11-8 23:12:00
有效耗时: 该状态没有记录
测试结果1: 选手程序无输出
测试结果2: 选手程序无输出
测试结果3: 选手程序无输出
测试结果4: 选手程序无输出
测试结果5: 选手程序无输出
提交代码: #include <iostream>
#include <string>
using namespace std;
string st;
int main ()
{
int n;
getline(cin,st);
if (st=="HH HH") cout<<"4:0"<<endl;
if (st=="rr rr") cout<<"0:4"<<endl;
if (st=="Hr Hr") cout<<"3:1"<<endl;
if (st=="HH Hr" || st=="Hr HH") cout<<"4:0"<<endl;
if (st=="HH rr" || st=="rr HH") cout<<"4:0"<<endl;
if (st=="Hr rr" || st=="rr Hr") cout<<"1:1"<<endl;
return 0;
}