提交时间:2024-12-22 16:47:02
运行 ID: 3210
#include<iostream> using namespace std; int main() { int a,b,c,d = 0,e = 0,f = 0; cin>>a; while (a - 1) { cin>>b; while (b) { if (b >= 3) { d = b / 3; } else if (b >= 2) { e = b / 2; } else if (b >= 1) { f = b / 1; } c = d * 90 + e * 70 + f * 40; } a--; } }