QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#745735#5591. Fading WindpannedWA 0ms3496kbC++14478b2024-11-14 11:17:352024-11-14 11:17:40

Judging History

你现在查看的是最新测评结果

  • [2024-11-14 11:17:40]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3496kb
  • [2024-11-14 11:17:35]
  • 提交

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'