Submission #3744817


Source Code Expand

#include <iostream>
using namespace std;

int main()
{
    float a, b;
	cin >> a >> b;
	cout << b / a + ( b % a ? 1 : 0 ) << endl;
}

Submission Info

Submission Time
Task A - お茶
User kuramot6f
Language C++14 (GCC 5.4.1)
Score 0
Code Size 140 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:8:24: error: invalid operands of types ‘float’ and ‘float’ to binary ‘operator%’
  cout << b / a + ( b % a ? 1 : 0 ) << endl;
                        ^