#33999: C ans


yp11151049@yphs.tp.edu.tw (901-26李文睿)


#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    while(cin>>n,n>=0) printf("%o\n",n);
    cout<<"-1"<<endl;
}

#34070: Re: C ans


yp11151097@yphs.tp.edu.tw (908-30施耀登)


#include
using namespace std;
int main(){
    int n;
    while(cin>>n,n>=0) printf("%o\n",n);
    cout<<"-1"<}


這是C++ ANS吧?