QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#745735 | #5591. Fading Wind | panned | WA | 0ms | 3496kb | C++14 | 478b | 2024-11-14 11:17:35 | 2024-11-14 11:17:40 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define YES cout << "YES\n"
#define NO cout << "NO\n"
void SOLVE() {
int h, k, v, s;
cin >> h >> k >> v >> s;
int hort;
while(h>0){
v+=s;
v-=max(1, v/10);
if(v>=k){
h+=1;
}else if(0<v && v<k){
h-=1;
if(h==0){
v=0;
}
}else if(v<=0){
h=0;
v=0;
}
hort+=v;
if(s>0){
s-=1;
}
}
cout << hort-1 ;
}
int main(){
SOLVE();
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3496kb
input:
1 1 1 1
output:
405889744
result:
wrong answer 1st lines differ - expected: '1', found: '405889744'