#7346: C++ WA (line3) 幫忙看一下QQ


ckefgiscteatea (茶)

學校 : 臺北市立建國高級中學
編號 : 29718
來源 : [210.71.78.244]
最後登入時間 :
2014-07-30 17:02:23
a005. Eva 的回家作業 -- POJ | From: [210.71.78.252] | 發表日期 : 2012-12-26 12:38

#include <iostream>
using namespace std;
int main(){

    int iSer[4];
    int iIes[4];
    int a , i , d , h;
    cin  >> a;
    cin  >> iSer[0] >> iSer[1] >> iSer[2] >> iSer[3];
    cin  >> iIes[0] >> iIes[1] >> iIes[2] >> iIes[3];
          for (i = 0;i <= 0;i++){
              d = iSer[1] - iSer[0];
              iSer[4] = iSer[3] + d;
              cout << iSer[0] << " " << iSer[1] << " " << iSer[2] << " " << iSer[3] << " " << iSer[4] << endl;
              }
             

   
   
          for (i = 0;i <= 0;i++){
              h = iIes[1] / iIes[0];
              iIes[4] = iIes[3] * h;
              cout << iIes[0] << " " << iIes[1] << " " << iIes[2] << " " << iIes[3] << " " << iIes[4] << endl;
              }
              
       
    return 0;


}

 
ZeroJudge Forum