Submission #582430

#TimeUsernameProblemLanguageResultExecution timeMemory
582430alexz1205Rabbit Carrot (LMIO19_triusis)C++14
0 / 100
1 ms296 KiB
#include <iostream> using namespace std; int main() { int n, t; cin >> n >> t; int p = 0, c = 0; for (int x = 0; x < n; x ++){ int a; cin >> a; if (p+t < a){ p = p+t; c ++; }else { p = a; } } cout << c << endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...