diff --git a/158A-NextRound/158A.cpp b/158A-NextRound/158A.cpp new file mode 100644 index 0000000..46b2d6e --- /dev/null +++ b/158A-NextRound/158A.cpp @@ -0,0 +1,21 @@ +#include +using namespace std; + +int main() +{ + int i, j, n, k, count=0; + cin >> n >> k; + int s[n]; + for (i = 0; i < n; i++) + { + cin >> s[i]; + } + for(i=0;i 0 && s[i]>=s[k-1]) + { + count++; + } + } + cout << count; +} \ No newline at end of file