AtCoder 190(网址)
c题和d题挺interesting的。。。
a题和b题一如既往地水。。。
e题f题毫无例外的pass。。。
Problem A:
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(c==0)
{
if(a>b)
{
cout<<"Takahashi";
return 0;
}
cout<<"Aoki";
return 0;
}
if(c==1)
{
if(b>a)
{
cout<<"Aoki";
return 0;
}
cout<<"Takahashi";
return 0;
}
}
Problem B:
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
ll n,s,d;
cin>>n>>s>>d;
while(n--)
{
ll x,y;
cin>>x>>y;
if(x<s&&y>d)
{
cout<<"Yes";
return 0;
}
}
cout<<"No";
return 0;
}
Problem C:
唠嗑模式开启,大佬们不要见怪~~~~~~~~
https://atcoder.jp/contests/abc190/tasks/abc190_c
题目大意:
有n个盘子,m个条件,k个人
如果盘子和盘子