摘要: 观察一下序列,每3个数一组,第一个数余1,不能,加第二个数后整除(第二个数本身余2),第三数恰整除。一行代码的事。011011011....#includeusing namespace std;int main(){ int n; while(cin>>n) { c... 阅读全文
posted @ 2014-03-29 11:23 天羽屠龙舞 阅读(118) 评论(0) 推荐(0)
摘要: 感觉自己弱爆了,做做SGU吧。。。#include#include //欧拉函数using namespace std;int euler(int n){ int m=n; int ans=n; for(int i=2;i>n) { cout<<euler(n)<<e... 阅读全文
posted @ 2014-03-29 11:20 天羽屠龙舞 阅读(116) 评论(0) 推荐(0)