2 条题解

  • 0
    @ 2025-5-6 22:49:13
    #include<bits/stdc++.h>
    using namespace std;
    const int N=1e5+5,INF=0x3f3f3f3f;
    typedef long long LL;
    int n;
    int main(){
    	cin>>n;
    	while(n){
    		cout<<n%10;
    		n/=100;
    	}
    	return 0;
    }
    
    • 0
      @ 2024-12-13 18:27:44
      #include<iostream>
      using namespace std;
      int main(){
      	int x;
      	cin >> x ;
      	int num = 1;
      	for(int i = x; i > 0; i = i / 10 ){
      		if ( num % 2 == 1)
      			cout << i % 10;
      		num = num + 1;
      	}
      	return 0;	
      }
      
      • 1

      信息

      ID
      3080
      时间
      1000ms
      内存
      256MiB
      难度
      8
      标签
      (无)
      递交数
      81
      已通过
      14
      上传者