https://codeforces.com/contest/1102/problem/A

题解:找规律

/*
*@Author:   STZG
*@Language: C++
*/
#include <bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<cstdlib>
#include<cstring>
#include<cstdio>
#include<string>
#include<vector>
#include<bitset>
#include<queue>
#include<deque>
#include<stack>
#include<cmath>
#include<list>
#include<map>
#include<set>
//#define DEBUG
#define RI register int
using namespace std;
typedef long long ll;
//typedef __int128 lll;
const int N=100000+10;
const int MOD=1e9+7;
const double PI = acos(-1.0);
const double EXP = 1E-8;
const int INF = 0x3f3f3f3f;
int t,n,m,k,q;
int ans,cnt,flag,temp;
int a[N];
char str;
int main()
{
#ifdef DEBUGfreopen("input.in", "r", stdin);//freopen("output.out", "w", stdout);
#endifscanf("%d",&n);//scanf("%d",&t);//while(t--){}if(n%4==0){cout<<0<<endl;}else if(n%4==1){cout<<1<<endl;}else if(n%4==2){cout<<1<<endl;}else if(n%4==3){cout<<0<<endl;}//cout << "Hello world!" << endl;return 0;
}

Integer Sequence Dividing相关推荐

  1. matlab 判断矩阵奇异,Matlab 奇异值、奇异矩阵、svd函数

    奇异值: 奇异值分解法是线性代数中一种重要的矩阵分解法,在信号处理.统计学等领域有重要应用. 定义:设A为m*n阶矩阵,A'表示A的转置矩阵,A'*A的n个特征值的非负平方根叫作A的奇异值.记为σi( ...

  2. hdu 2454 Degree Sequence of Graph G

    点击打开链接 Degree Sequence of Graph G Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 32768/3276 ...

  3. HDU 5919 Sequence II 主席树

    题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5919 Sequence II Time Limit: 9000/4500 MS (Java/Othe ...

  4. Beautiful Sequence CodeForces - 1264B(暴力)

    An integer sequence is called beautiful if the difference between any two consecutive numbers is equ ...

  5. Sequence II HDU - 5919(主席树)

    Mr. Frog has an integer sequence of length n, which can be denoted as a1,a2,⋯,ana1,a2,⋯,an There are ...

  6. 【2019浙江省赛 - E】Sequence in the Pocket(思维)

    题干: DreamGrid has just found an integer sequence  in his right pocket. As DreamGrid is bored, he dec ...

  7. Degree Sequence of Graph G【模拟】

    Degree Sequence of Graph G 时间限制: 1 Sec 内存限制: 128 MB 提交: 362 解决: 92 [提交] [状态] [命题人:admin] 题目描述 Wang H ...

  8. Hdu-5919 Sequence II(主席树在线求区间不同数)

    Description Mr. Frog has an integer sequence of length n, which can be denoted as a1,a2,⋯,an There a ...

  9. Sequence II(HDU - 5919)

    题目 Mr. Frog has an integer sequence of length n, which can be denoted as a1,a2,⋯,an.There are m quer ...

最新文章

  1. 深度学习最常用的10个激活函数
  2. 百家中华老字号故宫过大年
  3. hapi lab测试框架简单使用
  4. 锁定弹出层(jquery语法)
  5. 使用OpenXml打开word文档中嵌入的另一个文档
  6. Linux系统编程13:进程入门之Linux中的环境变量的概念及其相关命令(export;env等)main函数的参数
  7. 交互式内核图 -***
  8. (转)Spring Boot 2 (四):使用 Docker 部署 Spring Boot
  9. html简单网页设计实验实践结论,网页设计社会实践报告
  10. Java反编译工具 luyten 0.5.3
  11. 微信小程序开发账号找回
  12. 中医针灸学综合练习题库【3】
  13. 达人评测i51235u和i51135g7哪个好
  14. #pragma用法详解
  15. html表格横向竖向滚动,html表格,表头竖向固定,横向滚动的例子
  16. 云计算厂商迎来升级拐点,边缘计算布局或将成决胜点
  17. 【将金令】1.22早评:金银扶摇而上,谨防空头突袭
  18. 关于新版idea如何导入项目
  19. 休闲零食混战:三只松鼠“守淘”,良品铺子“攻抖”
  20. 电子科大计算机学院张小松院长,祝贺!电子科技大学张小松教授荣获全国创新争先奖!...

热门文章

  1. 编写程序将一行英文中指定的字符串替换为另一字符串后输出。注意:查找指定字符串_python 3 笔记(一)...
  2. java多线程编程_Java多线程编程实战指南+设计模式篇.pdf
  3. java归还线程_再谈java线程
  4. stl clocklist 查找元素_剑指信奥 C++ 之 STL 迭代器(上)
  5. for(;;)是什么,for(;;)的作用
  6. inrange函数_Python 初学者必备的常用内置函数
  7. flask mysql 版本_Flask mysql
  8. 域对抗自适应算法的设计、不足与改进(Domain Adversarial Learning)
  9. Transformer升级之路:博采众长的旋转式位置编码
  10. 面试也需要刷题?你至少需要知道这些……