2 条题解

  • 0
    @ 2026-6-5 20:00:11

    #include <bits/stdc++.h> using namespace std;

    int main() { int x; cin >> x; bool first = true; while (x > 0) { int n = x % 10; if (first) { cout << n; first = false; } else { cout << " " << n;

    	}
    	x /= 10;
    }
    
    return 0;
    

    }

    信息

    ID
    30960
    时间
    1000ms
    内存
    256MiB
    难度
    1
    标签
    (无)
    递交数
    58
    已通过
    42
    上传者