AtCoder Beginner Contest 005

Submission #3981243

Source codeソースコード

#include <iostream>
using namespace std;


int main()
{
	int x,y;
	cin >> x >> y;
	cout << ((x + x % y) / y) - 1 << endl;
}

Submission

Task問題 A - おいしいたこ焼きの作り方
User nameユーザ名 kandondonX
Created time投稿日時
Language言語 C++14 (GCC 5.4.1)
Status状態 WA
Score得点 0
Source lengthソースコード長 136 Byte
File nameファイル名
Exec time実行時間 ms
Memory usageメモリ使用量 -

Test case

Set

Set name Score得点 / Max score Cases
All 0 / 100 rand0.txt,rand1.txt,rand10.txt,rand11.txt,rand12.txt,rand13.txt,rand14.txt,rand15.txt,rand16.txt,rand17.txt,rand18.txt,rand19.txt,rand2.txt,rand20.txt,rand21.txt,rand22.txt,rand23.txt,rand24.txt,rand25.txt,rand26.txt,rand27.txt,rand28.txt,rand29.txt,rand3.txt,rand4.txt,rand5.txt,rand6.txt,rand7.txt,rand8.txt,rand9.txt,s1.txt,s2.txt,s3.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
rand0.txt AC 1 ms 256 KB
rand1.txt WA
rand10.txt WA
rand11.txt AC 1 ms 256 KB
rand12.txt WA
rand13.txt WA
rand14.txt WA
rand15.txt WA
rand16.txt WA
rand17.txt WA
rand18.txt WA
rand19.txt AC 1 ms 256 KB
rand2.txt AC 1 ms 256 KB
rand20.txt WA
rand21.txt WA
rand22.txt WA
rand23.txt WA
rand24.txt WA
rand25.txt WA
rand26.txt WA
rand27.txt WA
rand28.txt WA
rand29.txt AC 1 ms 256 KB
rand3.txt WA
rand4.txt WA
rand5.txt WA
rand6.txt WA
rand7.txt WA
rand8.txt WA
rand9.txt WA
s1.txt WA
s2.txt WA
s3.txt AC 1 ms 256 KB