赛车
KartRider
https://ac.nowcoder.com/acm/contest/23942/C
#include <iostream> #include <math.h> #include <algorithm> #include <set> using namespace std; int fun(int x) { int ans = 0,res = 0; while(ans<x||ans%2!=x%2) { res++; ans+=res; } return res; } int main() { int n,m; scanf("%d%d",&n,&m); int t1=fun(n),t2=fun(m); if(t1==t2) cout<<"Draw"; else if(t1<t2) cout<<"Tari "<<t1; else cout<<"Erini "<<t2<<endl; return 0; }
指尖的温柔梦 文章被收录于专栏
每天在博客写一些题解,为了思路更加清晰。