#55500: 此題解答(C++)


yp11550392@yphs.tp.edu.tw (ZEROJUDGE)


 

#include <iostream>

using namespace std;

int main() {
   int pencil;
   cin >> pencil ;
   
   int Dozen = pencil/12;
   int one = pencil % 12 ;
   
   cout << Dozen*50+one*5;
   
return 0;

}

 

 

(答案僅供參考,禁止抄襲!)