Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
339361 黄浙峰老师 【C6-6】十进制转换成八进制 C++ Accepted 100 3 MS 248 KB 207 2025-08-11 10:34:32

Tests(7/7):


#include<bits/stdc++.h> using namespace std; long long s(long long n) { if(n<8) return n; return s(n/8)*10 + n%8; } int main() { long long n; cin>>n; cout<<s(n); return 0; }


Judgement Protocol: