a004: 文文的求婚 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 11月 05, 2010 #includeusing namespace std;int main(){ int a; while(cin>>a){ if(((a%4 ==0) && !(a%100 == 0)) || (a%400 == 0)){ cout<<"閏年"<< endl; } else{ cout<<"平年"<< endl; } } return 0;} 取得連結 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上來... 繼續閱讀
留言
張貼留言