| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 2741 | A班-过懿萱 | 班级就餐 | C++ | Wrong Answer | 0 | 1 MS | 256 KB | 379 | 2024-12-21 11:28:10 |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int a[110]; for(int i = 1;i <= n;i++) { cin>>a[i]; } int temp = 0; for(int i = 1;i <= n;i++) { 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; }