#include <iostream>
using namespace std ;
int main() {
int n;
cin>>n;
if(n==1) cout<<0<<endl;
else cout<<1<<endl;
}
#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
#include <iostream> using namespace std; int main() { int n; cin >> n; cout << (n != 1) << endl; }
the shortest
#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
#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
#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);
}