#13414: 沒有比這個更簡單的寫法了~~


funi (FuniMe)


#include <iostream>

using namespace std;

int main()
{
int easy;
cin >> easy;
cout << -(easy <0 ) + (easy > 0);    <- 本人想的這行堪稱是神的傑作阿~
return 0;
}

#13415: Re:沒有比這個更簡單的寫法了~~


justinO__o (夜貓)


 

#include

using namespace std;

int main()
{
int easy;
cin >> easy;
cout << -(easy 0);   
return 0;
}



1. 請勿直接貼出完整程式碼,而是請說明解題思路、所需使用的演算法...等,讓不會寫的使用者可以從中學習獲得成長。

2. 不要自以為寫的很好好嗎,寫的好的多的是

#13428: Re:沒有比這個更簡單的寫法了~~


nkavengertree (LaG)


 

#include

using namespace std;

int main()
{
int easy;
cin >> easy;
cout << -(easy 0);   
return 0;
}



1. 請勿直接貼出完整程式碼,而是請說明解題思路、所需使用的演算法...等,讓不會寫的使用者可以從中學習獲得成長。

2. 不要自以為寫的很好好嗎,寫的好的多的是

 

囂張到一個無法無天的地步了

 




#15171: Re:沒有比這個更簡單的寫法了~~


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


 

#include

using namespace std;

int main()
{
int easy;
cin >> easy;
cout << -(easy 0);   
return 0;
}



1. 請勿直接貼出完整程式碼,而是請說明解題思路、所需使用的演算法...等,讓不會寫的使用者可以從中學習獲得成長。<----這我沒資格講(ouo)

2. 不要自以為寫的很好好嗎,寫的好的多的是

 

囂張到一個無法無天的地步了

 


這真的太囂張了吧,一個程式而已,那些幾乎全破的都不講話的!




#15173: Re:沒有比這個更簡單的寫法了~~


samwu (swswsw)


 

#include

using namespace std;

int main()
{
int easy;
cin >> easy;
cout << -(easy 0);   
return 0;
}

這不就變相的a024ㄇ

反正我是直接用gcd

OwO

 

cout<<std::_gcd(n,m)<<endl;

 

#15174: Re:沒有比這個更簡單的寫法了~~


samwu (swswsw)


 

#include

using namespace std;

int main()
{
int easy;
cin >> easy;
cout << -(easy 0);   
return 0;
}

 




#15175: Re:沒有比這個更簡單的寫法了~~


samwu (swswsw)


 

#include

using namespace std;

int main()
{
int easy;
cin >> easy;
cout << -(easy 0);   
return 0;
}

 


回錯惹zzz




#15176: Re:沒有比這個更簡單的寫法了~~


samwu (swswsw)