公式

A - Brick 解説 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)

#include<stdio.h>
int main(){
	int n,w;
	scanf("%d%d",&n,&w);
	printf("%d\n",n/w);
}

Sample Code (Python)

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

Sample Code (Ruby)

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

投稿日時:
最終更新: