#14600: C++ AC


elvisliu (方塊)

學校 : 臺北市私立延平高級中學
編號 : 69054
來源 : [203.72.178.252]
最後登入時間 :
2018-12-19 17:05:19

#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++ 與我)

學校 : 臺北市私立薇閣高級中學
編號 : 82132
來源 : [36.224.41.96]
最後登入時間 :
2021-08-07 19:29:31

#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)

學校 : 國立成功大學
編號 : 61119
來源 : [140.116.1.138]
最後登入時間 :
2018-09-24 00:20:31

#include <iostream>

using namespace std;

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

the shortest

#17908: Re:C++ AC


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

學校 : 臺北市私立延平高級中學
編號 : 83268
來源 : [203.72.178.1]
最後登入時間 :
2023-10-30 13:02:50

#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 (爬 我爬 我爬爬爬 有排行榜這種東西就是要爬 爬過我上面的那...)

學校 : 臺北市私立延平高級中學
編號 : 83268
來源 : [203.72.178.1]
最後登入時間 :
2023-10-30 13:02:50

#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)

學校 : 新北市立板橋高級中學
編號 : 125096
來源 : [111.255.39.186]
最後登入時間 :
2025-05-17 02:51:59

#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);

}