1764: [NewOJ Contest 8] 石头剪刀布 I

内存限制:256 MB 时间限制:1 S 标准输入输出
题目类型:传统 评测方式:文本比较 上传者:
提交:100 通过:46

题目描述

小明和小蓝在玩石头剪刀布的游戏。
石头用rock表示,剪刀用scissor表示,布用paper表示。
现在给出100轮游戏每人出的手势,请你判断出小明、小蓝分别胜利的次数。

输入格式

无输入。
100行手势在样例输入中,每行两个单词,分别表示小明和小蓝的手势。

输出格式

只需输出两个数字表示小明、小蓝分别胜利的次数,数字间以一个空格分隔

输入样例 复制

paper paper
scissor scissor
paper scissor
rock rock
scissor paper
paper paper
scissor rock
scissor paper
scissor paper
rock rock
rock rock
paper rock
scissor scissor
rock paper
paper paper
paper rock
paper rock
rock scissor
paper scissor
scissor rock
paper rock
paper rock
rock paper
rock scissor
paper scissor
paper paper
scissor rock
rock scissor
paper rock
scissor scissor
scissor paper
paper rock
rock scissor
scissor paper
scissor scissor
paper rock
paper rock
scissor paper
rock rock
rock paper
rock paper
rock scissor
rock paper
scissor paper
paper scissor
rock rock
paper scissor
paper scissor
paper rock
rock paper
rock paper
scissor rock
rock rock
rock paper
paper rock
paper paper
paper scissor
rock rock
paper rock
rock rock
scissor rock
paper rock
paper paper
rock scissor
paper scissor
paper scissor
rock scissor
scissor scissor
rock paper
scissor rock
scissor paper
rock rock
paper paper
scissor paper
paper rock
paper scissor
paper scissor
rock paper
rock paper
rock paper
scissor paper
rock paper
paper rock
scissor rock
paper paper
scissor paper
paper scissor
rock rock
rock rock
rock scissor
scissor rock
paper scissor
rock paper
rock paper
scissor paper
paper scissor
rock scissor
paper rock
rock paper
scissor scissor

输出样例 复制