Fibonacci Again(水题)

打表找规律即可

#include<iostream>
using namespace std;
int main()
{
	int n;
	while(cin>>n)
	{
		if(n%4==2) cout<<"yes"<<endl;
		else cout<<"no"<<endl;
	}
}

在网上找的规律之一,还有其他规律,打表一个一个找即可

发布了22 篇原创文章 · 获赞 3 · 访问量 638

猜你喜欢

转载自blog.csdn.net/qq_45520541/article/details/105006724