#14600: C++ AC


elvisliu (方塊)


#include <iostream>
using namespace std ;
int main() {
int n;
cin>>n;
if(n==1) cout<<0<<endl;
else cout<<1<<endl;
}

#15092: Re:C++ AC


wish.rirf@gmail.com (C++ 與我)


#include
using namespace std ;
int main() {
int n;
cin>>n;
if(n==1) cout<<0<<endl;
else cout<<1<<endl;
}

#include <iostream>

using namespace std ;

int main() {

int n;

cin>>n;

cout<<(n==1?0:1);

}

shorter than yours

#15895: Re:C++ AC


tang891228 (tang891228)


#include <iostream>

using namespace std;

int main() {
    int n;
    cin >> n;
    cout << (n != 1) << endl;
}

the shortest

#17908: Re:C++ AC


ufve0704 (爬 我爬 我爬爬爬 有排行榜這種東西就是要爬 爬過我上面的那...)


#include 

using namespace std;

int main() {
    int n;
    cin >> n;
    cout << (n != 1) << endl;
}

the shortest

 

#import <iostream>
using namespace std ;
int main() {
int n;
cin>>n;
if(n==1) cout<<0<<endl;
else cout<<1<<endl; 
}

REALLY?

I DON'T THINK SO

THIS IS SHORTER THAN YOURS

 

#17909: Re:C++ AC


ufve0704 (爬 我爬 我爬爬爬 有排行榜這種東西就是要爬 爬過我上面的那...)


#include 

using namespace std;

int main() {
    int n;
    cin >> n;
    cout << (n != 1) << endl;
}

the shortest

 

#import <iostream>

using namespace std ;

int main() {

int n; cin >> n;

cout << (n != 1) << endl;

}

REALLY?

I DON'T THINK SO

THIS IS SHORTER THAN YOURS

 突然發現發錯XD

#24150: Re:C++ AC


555555555555555555555555555555 ... (5x55)


#include 

using namespace std;

int main() {
    int n;
    cin >> n;
    cout << (n != 1) << endl;
}

the shortest

 

#import

using namespace std ;

int main() {

int n; cin >> n;

cout << (n != 1) << endl;

}

REALLY?

I DON'T THINK SO

THIS IS SHORTER THAN YOURS

 突然發現發錯XD

#include <iostream>

using namespace std;

int main(){

    cout << (cin.get() - 49 || cin.peek() - 10);

}