摘要:
#includeusing namespace std;int main(){ int n; while(cin>>n) { int count=0; while(n != 1){ if(n%2==0)n=n/2; else n=3*n+1; count++; } cout<<... 阅读全文
posted @ 2015-01-11 22:52
NYNU_ACM
阅读(148)
评论(0)
推荐(0)
摘要:
#includeusing namespace std;int main(){ int n; while(cin>>n) { if(n%4 == 0&&n%100 != 0||n%400 == 0) cout<<"Yes"<<endl; else cout... 阅读全文
posted @ 2015-01-11 22:42
NYNU_ACM
阅读(200)
评论(0)
推荐(0)
摘要:
#include#includeusing namespace std;int main(){ int a,b,c; while(cin>>a>>b>>c) { int temp; if(a>b){ temp=a; a=b; b=temp; } if(a>c){ temp=a... 阅读全文
posted @ 2015-01-11 22:35
NYNU_ACM
阅读(456)
评论(0)
推荐(0)

浙公网安备 33010602011771号