1 solutions

  • 0
    @ 2025-11-5 17:01:31

    C :

    #include <stdio.h>
    int main ()
    {
    	//freopen("a.in","r",stdin);
    	//freopen("a.out","w",stdout);
    	int n;
    	while(scanf("%d",&n) != EOF)
    	{
    		printf("%o\n",n);
    	}
    	return 0;
    }
    

    C++ :

    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n;
        while(~scanf("%d",&n)){
            printf("%o\n",n);
        }
        return 0;
    }
    
    
    • 1

    Information

    ID
    18161
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By