首页
IT
登录
6mi
u
盘
搜
搜 索
IT
CodeForces Round #401 补题
CodeForces Round #401 补题
xiaoxiao
2021-03-25
107
Problem A:
#include <cstdio>
#include <iostream>
using
namespace
std
;
#define F(i,a,b) for(int i=a;i<b;i++)
int
main(){
int
n,x;
scanf
(
"%d%d"
,&n,&x); n %=
6
;
while
(n--){
if
(n &
1
){
if
(x!=
0
) x=
3
-x; }
else
{
if
(x!=
2
) x=
1
-x; } }
cout
<<x<<endl;
return
0
; }
转载请注明原文地址: https://ju.6miu.com/read-8531.html
技术
最新回复
(
0
)