当前位置:网站首页>Divide by Zero 2017 and Codeforces Round #399 (Div. 1 + Div. 2, combined) E. Game of Stones
Divide by Zero 2017 and Codeforces Round #399 (Div. 1 + Div. 2, combined) E. Game of Stones
2022-06-09 05:56:00 【No toast】
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <vector>
#include <math.h>
#include <bitset>
#include <algorithm>
using namespace std;
#define X first
#define Y second
#define eps 1e-2
#define gcd __gcd
#define pb push_back
#define PI acos(-1.0)
#define lowbit(x) (x)&(-x)
#define bug printf("!!!!!\n");
#define mem(x,y) memset(x,y,sizeof(x))
typedef long long LL;
typedef long double LD;
typedef pair<int,int> pii;
typedef unsigned long long uLL;
const int N = 1e5+2;
const int INF = 1<<30;
const int mod = 1e9+7;
int t,n;
void solve(){
cin>>t;
int res=0;
while(t--){
cin>>n;int i=0;
for(i=0;(i+1)*i/2<=n;i++){
}
res^=(i-1);
}
cout<<(res!=0?"NO":"YES")<<endl;
return;
}
int main()
{
// freopen("in.txt","r",stdin);
// freopen("out.txt","w",stdout);
// ios::sync_with_stdio(false);
int t = 1;
//scanf("%d",&t);
while(t--){
// printf("Case %d: ",cas++);
solve();
}
return 0;
}
边栏推荐
- Time stamp verification code signing method for code signing certificate
- cbnet环境配置和运行中遇到的问题
- threadlocal 解析
- Lambda anonymous function
- CEF intercepts URLs and redirects new URLs
- SSL证书包含了哪些信息?
- Google colab tips
- 圖像處理-特征融合相關延伸
- A guide to signing adobe air applications using code signing certificates
- Several implementation methods of redis distributed lock
猜你喜欢

Go language tutorial 02 go common libraries + compile consult

SSL证书包含了哪些信息?

What information does the SSL certificate contain?

和琪宝的重庆之旅~

Gstreamer应用开发实战指南(四)

Three queues CXQ, entrylist, waitset personal understanding analysis

Thread interrupted detailed parsing

SSL证书安装后网站还是显示不安全

Wireshark图解TCP三次握手与四次挥手

MySQL add field or create table SQL statement
随机推荐
Jdbc-dbutils
Go language tutorial 02 go common libraries + compile consult
Use__ proto__ To assign prototypes
Practical guide to GStreamer application development (I)
XML建模
Topic26——11. 盛最多水的容器
Wireshark图解TCP三次握手与四次挥手
threadlocal 解析
Use the default value method if the configuration file does not exist
Image processing feature fusion correlation extension
Data governance: how to improve enterprise data quality?
Mvcc multi version control
Heqibao's trip to Chongqing ~
Entity to map tool
Yoyov5's tricks | [trick7] exponential moving average (EMA)
Offline data synchronization platform datax+ report visualization platform metabase
JVM basic theory.
Yolov5-6.0 series | yolov5 model network construction
lambda匿名函数
Several implementation methods of redis distributed lock