提交时间:2024-12-21 11:34:45
运行 ID: 2745
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int a[n]; for(int i = 1;i <= n;i++) { cin>>a[i]; } int temp = 0; for(int i = 1;i <= n;i++) { if(a[i] % 3 == 0) { temp = a[i] / 3 * 90; cout<<temp<<endl; } if(a[i] % 3 == 1) { temp = a[i] / 3 * 90; cout<<temp + 40<<endl; } if(a[i] % 3 == 2) { temp = a[i] / 3 * 90; cout<<temp + 70<<endl; } } return 0; }