a012 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 12月 13, 2010 #include< iostream>using namespace std;int main(){ long long int a,b; while(cin >> a>> b){ if(a-b >= 0 ){ cout<< a-b; } else{ cout<< b-a; } }} 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 留言
a002: 簡易加法 11月 04, 2010 #include using namespace std; int main(){ int a,b; while(cin>>a>>b){ cout } return 0; } 繼續閱讀
a005: Eva 的回家作業 11月 05, 2010 #include using namespace std; int main(){ int count; while(cin>>count){ int array[count][3]; for(int i=0;i for(int j=0;j cin>> array[i][j]; } if((array[i][1]-array[i][0]) == (array[i][2]-array[i][1])){ cout } else{ cout } }//for }//while return 0; }//main 關於二維陣列寫入遇到一個大問題= = 雖然還沒解決此題就AC了 改天解決了在把問題PO上來... 繼續閱讀
留言
張貼留言