Submission #1278475

#TimeUsernameProblemLanguageResultExecution timeMemory
1278475jackofall718Snail (NOI18_snail)C++20
0 / 100
1 ms576 KiB
#include <bits/stdc++.h>
#include <chrono>
#define ll long long int
#define endl '\n'
#define vn vector<ll>
#define vi vector<pair <ll,ll>>

using namespace std;
using namespace std::chrono;
const int MAX_N = 1e9 + 7;
#define pii pair<ll,ll>
const ll INF = 0x3f3f3f3f3f3f3f3f;

#define pb push_back  
#define srt(vp) sort(vp.begin(), vp.end()) 

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    auto start = high_resolution_clock::now();
    ll h,n;
    cin>>h>>n;
    ll imp;
    cin>>imp;
    if (imp==0){
        cout<<-1<<" "<<-1<<endl;
    }
    else{
    ll ans;
    ans = (h/imp);
    ans--;
    if (h%imp)ans++;
    cout<<ans<<" "<<0<<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...
#Verdict Execution timeMemoryGrader output
Fetching results...