QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#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();
}
详细
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'