2026-11-15 20:43:52
发布于:浙江
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
const int N = 2e5 + 10;
int tables[]= {0,2,4,6,8};
void fn(ll n) {
if (n == 0)return;
fn(n/5);
cout << tables[n%5];
}
int main() {
ll k;
cin >> k;
k--;
if (k==0)cout << 0;
fn(k);
return 0;
}
这里空空如也














有帮助,赞一个