诶诶诶诶| col | col | col | col | | - | - | - | - | | content | content | content | content |

2 条评论

  • @ 2025-10-14 17:03:21

    角谷猜想

    • @ 2025-10-14 17:02:48
      #include<bits/stdc++.h>
      using namespace std;
      int main(){
          long long n;
          cin>>n;
          long long a=n;
          if(n==0){
          	cout<<"End";
          	return 0;
      	}
      	while(a!=0){
      		if(a==1){
      			break;
      		}
      		if(a%2!=0){
      			printf("%lld*3+1=%lld\n",a,a*3+1);
      			a=a*3+1;
      		}
      			printf("%lld/2=%lld\n",a,a/2);
      			a/=2;
      	}
          cout<<"End";
      	return 0;
      }
      • 1

      信息

      ID
      1202
      时间
      1000ms
      内存
      256MiB
      难度
      1
      标签
      递交数
      4
      已通过
      0
      上传者