# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
499528 | 2021-12-28T14:50:02 Z | Alisaf9 | Lampice (COCI21_lampice) | C++14 | 0 ms | 204 KB |
#include <iostream> using namespace std; int main() { int n,k,l,c=0; cin>>n>>k; int a[n+10]; bool z[n]; for(int i=0;i<n;i++) { cin>>a[i]; } for(int i=0;i<n;i++) { while(a[i]=a[i-1]) { c++; } if(c==k) { cout<<1<<"\n"<<a[i]; break; } } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | Unexpected end of file - int32 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | Unexpected end of file - int32 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | Unexpected end of file - int32 expected |
2 | Halted | 0 ms | 0 KB | - |