| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 2745 | A班-过懿萱 | 班级就餐 | C++ | Accepted | 100 | 5 MS | 264 KB | 456 | 2024-12-21 11:34:45 |
#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; }