A - Brick Editorial by en_translator

If you are new to learning programming and do not know where to start, please try Problem A “Welcome to AtCoder” from “practicecontest” (https://atcoder.jp/contests/practice/). There you can find a sample code for each language.

In this problem, you are asked to find the quotient of \(N/W\), rounded down to an integer. When you simply write \(N/W\), the result may be rounded to an integer or results in a floating point number, depending on language and type of variable you use. Check the behavior of your language carefully.

Sample Code (C)

int main(){
	int n,w;

Sample Code (Python)

N, W = map(int,input().split())

Sample Code (Ruby)

N, W = gets.split(' ').map(&:to_i)
p N/W

last update: