太水了。。请原谅我以各种水题增加博客数。。
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
while (true)
{
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
int e = sc.nextInt();
int f = sc.nextInt();
if (a == 0 && b == 0 && c == 0 && d == 0 && e == 0 && f == 0)
break;
System.out.format("Anna's won-loss record is %d-%d.\n", (a + b) * 2
- a - c - e, (a + b) * 2 - b - d - f);
}
}
}