# 注：本题只需要提交填写部分的代码，请按照C++方式提交。

#include <iostream>
using namespace std;
int win(int x,int y)
{
/*

*/
}

int main()
{
int i,x,y,sum=0;
const int N=5;
for(i=0;i<N;i++){
cin>>x>>y;
sum += win(x,y);
}
if(sum<0)
cout<<"张三胜"<<endl;
else
cout<<"李四胜"<<endl;
return 0;
}

``````1 2
2 3
1 3
2 3
3 1``````

``张三胜``

``````program p1000(Input,Output);
var
i,a,b,zhang,li:integer;
begin
zhang := 0;
li := 0;
for i:=1 to 5 do
begin
if a=1 then
begin
if b=2 then
li := li+1;
if b=3 then
zhang := zhang+1;
end;
if a=2 then
begin
if b=1 then
zhang := zhang+1;
if b=3 then
li := li+1;
end;
if a=3 then
begin
if b=2 then
zhang := zhang+1;
if b=1 then
li := li+1;
end;
end;
if zhang>li then
write('李四胜')
else
write('张三胜');
end.``````

``````
#include <iostream>
using namespace std;
int win(int x,int y)
{
if(x==1&&y==3)
return 1;
if(x==2&&y==1)
return 1;
if(x==3&&y==2)
return 1;
return -1;
}

int main()
{
int i,x,y,sum=0;
const int N=5;
for(i=0;i<N;i++){
cin>>x>>y;
sum += win(x,y);
}
if(sum<0)
cout<<"张三胜"<<endl;
else
cout<<"李四胜"<<endl;
return 0;
}
``````