样例正确但满江红 求助大佬 感谢

P1413 坚果保龄球

似乎没必要用结构体(? ``` // LG-P1413.cpp #include <bits/stdc++.h> using namespace std; int maxn[10],zom[10][500000]; int main() { int n,t,p,tot = 0; cin >> n; for(int i = 1;i <= n;i ++) { cin >> p >> t; maxn[p] = max(maxn[p],t); zom[p][t] ++; } for(int i = 1;i <= 6;i ++) { for(int j = 1;j <= maxn[i];) { if(zom[i][j]) { tot ++; j += 60; } else j ++; } } cout << tot; } ```
by liuchenyi0203 @ 2023-02-28 09:33:03


@[liuchenyi0203](/user/245459) **唔……我想知道我这个错在了哪里**
by CYF123469 @ 2023-02-28 12:50:13


|