# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
544681 |
2022-04-02T14:21:53 Z |
pokmui9909 |
None (KOI16_room) |
C++17 |
|
1 ms |
324 KB |
#include <bits/stdc++.h>
using namespace std;
int main()
{
cin.tie(NULL); cout.tie(NULL);
ios_base::sync_with_stdio(false);
int ar[6][2] = {};
int t, m; cin >> t >> m;
while(t--)
{
int a, b; cin >> a >> b;
ar[b - 1][a]++;
}
int ans = 0;
for(int i = 0; i < 6;i++)
{
ans += (ar[i][0] + m - 1) / m;
ans += (ar[i][1] + m - 1) / m;
}
cout << ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
320 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
324 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |