现在的位置: 首页 > 综合 > 正文

ZOJ 1796

2012年06月11日 ⁄ 综合 ⁄ 共 277字 ⁄ 字号 评论关闭

///////////////////////////////////////////////////////
#include <iostream>
using namespace std;

 

int main()
{
    int A,a,B,b,C,c;
    while(cin>>A>>a>>B>>b>>C>>c && !(A==0&&a==0&&B==0&&b==0&&C==0&&c==0))
    {
        cout<<"Anna's won-loss record is "<<b+c-A<<"-"<<B+C-a<<"."<<endl;
    }
    return 0;
}

抱歉!评论已关闭.