제출 #209510

#제출 시각아이디문제언어결과실행 시간메모리
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); }

컴파일 시 표준 에러 (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...