Submission #47900


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include<stdio.h>
int main()
{
long long a, b, ans1, ans2;
scanf("%lld %lld", &a, &b);
if(a%b == 0){
ans1 = a / b;
ans2 = ans1;
} else {
ans1 = a / b;
ans2 = a / b + 1;
}
printf("%lld %lld\n", ans1, ans2);
}

ステータス

項目 データ
問題 0926 - わりざんして!
ユーザー名 sth17_s-ito
投稿日時 2019-04-02 09:09:34
言語 C
状態 Accepted
得点 1
ソースコード長 243 Byte
最大実行時間 31 ms
最大メモリ使用量 696 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample01 AC 23 ms 376 KB
1
input-sample02 AC 25 ms 400 KB
1
input-sample03 AC 19 ms 356 KB
1
input01 AC 22 ms 376 KB
1
input02 AC 22 ms 432 KB
1
input03 AC 22 ms 356 KB
1
input04 AC 25 ms 436 KB
1
input05 AC 19 ms 364 KB
1
input06 AC 23 ms 384 KB
1
input07 AC 19 ms 432 KB
1
input08 AC 28 ms 484 KB
1
input09 AC 29 ms 536 KB
1
input10 AC 28 ms 492 KB
1
input11 AC 20 ms 516 KB
1
input12 AC 22 ms 468 KB
1
input13 AC 24 ms 392 KB
1
input14 AC 21 ms 412 KB
1
input15 AC 18 ms 460 KB
1
input16 AC 20 ms 516 KB
1
input17 AC 31 ms 468 KB
1
input18 AC 20 ms 392 KB
1
input19 AC 18 ms 536 KB
1
input20 AC 20 ms 488 KB
1
input21 AC 29 ms 504 KB
1
input22 AC 20 ms 560 KB
1
input23 AC 17 ms 608 KB
1
input24 AC 20 ms 560 KB
1
input25 AC 21 ms 580 KB
1
input26 AC 20 ms 636 KB
1
input27 AC 23 ms 472 KB
1
input28 AC 28 ms 620 KB
1
input29 AC 17 ms 580 KB
1
input30 AC 29 ms 596 KB
1
input31 AC 28 ms 648 KB
1
input32 AC 28 ms 696 KB
1