#include <bits/stdc++.h>
#define GLHF ios_base::sync_with_stdio(0); cin.tie(), cout.tie();
#define GGWP return 0;
#define ALTF4 exit(0)
#define GCWS/*Good Contest, Well Solved*/ ALTF4
#define ull unsigned long long
#define ll long long
#define ld long double
#define fxr1(x) for(int I = 0; I < x; ++I)
#define fxr(x) for(int I = 0; I <= x; ++I)
using namespace std;
int n, d, ans;
bool a[21];
int main()
{
GLHF
cin >> n >> d;
for ( int I = 0; I < n; ++I )
{
cin >> a[I];
if ( a[I] == 0 )
++ans;
}
cout << ans/d << endl;
GGWP
}
//clang++ -v -std=c++11 finish fishing the fish.people
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
376 KB |
Output is correct |
2 |
Correct |
2 ms |
472 KB |
Output is correct |
3 |
Incorrect |
2 ms |
472 KB |
Output isn't correct |
4 |
Incorrect |
2 ms |
472 KB |
Output isn't correct |
5 |
Incorrect |
2 ms |
476 KB |
Output isn't correct |
6 |
Incorrect |
2 ms |
476 KB |
Output isn't correct |
7 |
Runtime error |
3 ms |
660 KB |
Execution killed with signal 8 (could be triggered by violating memory limits) |
8 |
Runtime error |
2 ms |
784 KB |
Execution killed with signal 8 (could be triggered by violating memory limits) |
9 |
Runtime error |
3 ms |
912 KB |
Execution killed with signal 8 (could be triggered by violating memory limits) |
10 |
Runtime error |
3 ms |
912 KB |
Execution killed with signal 8 (could be triggered by violating memory limits) |