Submission #209510

#TimeUsernameProblemLanguageResultExecution timeMemory
209510model_codeSnail (NOI18_snail)C++17
11 / 100
5 ms376 KiB
#include <bits/stdc++.h>
using namespace std;
long long H, N;
int main() {
	scanf("%lld%lld", &H, &N);
	long long x;
	scanf("%lld", &x);
	if (x <= 0) puts("-1 -1");
	else printf("%lld %lld\n", ((H+(x-1))/x)-1, 0ll);
}

Compilation message (stderr)

snail.cpp: In function 'int main()':
snail.cpp:5:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld%lld", &H, &N);
  ~~~~~^~~~~~~~~~~~~~~~~~~~
snail.cpp:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld", &x);
  ~~~~~^~~~~~~~~~~~
#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...