| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1365790 | afterzero | Snail (NOI18_snail) | C++20 | 0 ms | 404 KiB |
#include<bits/stdc++.h>
using namespace std ;
int main(){
long long h , n ;
cin >> h>> n ;
//vector<long long>a(n);
long long val;
//for(int i = 0 ; i< n ; i++){
cin >> val;
//
if(val<=0){
cout << -1 << " " << -1 << endl;
return 0 ;
}
if(val>=h){
cout<< 0 << " " << 0 << endl;
}else{
if(h%val==0){
cout<<(h/val)-1 << " " << 0 << endl;
}else{
cout<<int(h/val) << " " << 0 << endl;
}
}
}
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
