Submission #1007944

#TimeUsernameProblemLanguageResultExecution timeMemory
1007944kebineLasers (NOI19_lasers)C++17
10 / 100
1 ms600 KiB
#include<bits/stdc++.h> #define int long long using namespace std; signed main() { int n, q, k, p; scanf("%lld %lld", &n, &q); scanf("%lld %lld", &k, &p); printf("%lld\n", max(0ll, 2*p-n)); }

Compilation message (stderr)

lasers.cpp: In function 'int main()':
lasers.cpp:8:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    8 |   scanf("%lld %lld", &n, &q);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~
lasers.cpp:9:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    9 |   scanf("%lld %lld", &k, &p);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...