Submission #1794793


Source Code Expand

#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include <sstream>
#include<iomanip>
#include <ctype.h>

//#include<bits/stdc++.h>


using namespace std;
int main() {
	int x, y, z;
	cin >> x >> y >> z;
	int ans = 0,d=0;
	while(d<x){
		d += z;
		if (d+y+z >= x)break;
		d += y; ans++;

	}

	cout << ans << endl;

	return 0;
}

Submission Info

Submission Time
Task B - ISU
User shio
Language C++14 (GCC 5.4.1)
Score 0
Code Size 573 Byte
Status WA
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
AC × 3
WA × 2
AC × 6
WA × 11
Set Name Test Cases
Sample example_0, example_1, example_2, example_3, example_4
All example_0, example_1, example_2, example_3, example_4, rand_0, rand_1, rand_10, rand_11, rand_2, rand_3, rand_4, rand_5, rand_6, rand_7, rand_8, rand_9
Case Name Status Exec Time Memory
example_0 WA 1 ms 256 KB
example_1 AC 1 ms 256 KB
example_2 AC 1 ms 256 KB
example_3 WA 1 ms 256 KB
example_4 AC 1 ms 256 KB
rand_0 WA 1 ms 256 KB
rand_1 WA 1 ms 256 KB
rand_10 WA 1 ms 256 KB
rand_11 WA 1 ms 256 KB
rand_2 WA 1 ms 256 KB
rand_3 WA 1 ms 256 KB
rand_4 AC 1 ms 256 KB
rand_5 WA 1 ms 256 KB
rand_6 AC 1 ms 256 KB
rand_7 AC 1 ms 256 KB
rand_8 WA 1 ms 256 KB
rand_9 WA 1 ms 256 KB