提出 #76930392


ソースコード 拡げる

A,B = map(int, input().split())

if abs((A//B-A/B))<0.5:
  print(A//B)
elif abs(A//B - A/B)>=0.5:
  print(A//B + 1)

提出情報

提出日時
問題 A - Approximation
ユーザ 5959
言語 Python (CPython 3.13.7)
得点 150
コード長 120 Byte
結果 AC
実行時間 12 ms
メモリ 9248 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 150 / 150
結果
AC × 3
AC × 13
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_handmade_03.txt, 01_handmade_04.txt, 01_handmade_05.txt, 01_handmade_06.txt, 02_random_07.txt, 02_random_08.txt, 02_random_09.txt, 02_random_10.txt, 02_random_11.txt, 02_random_12.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 11 ms 9024 KiB
00_sample_01.txt AC 11 ms 9100 KiB
00_sample_02.txt AC 11 ms 9180 KiB
01_handmade_03.txt AC 11 ms 9248 KiB
01_handmade_04.txt AC 11 ms 9248 KiB
01_handmade_05.txt AC 11 ms 9188 KiB
01_handmade_06.txt AC 11 ms 9100 KiB
02_random_07.txt AC 11 ms 9156 KiB
02_random_08.txt AC 11 ms 9196 KiB
02_random_09.txt AC 11 ms 9248 KiB
02_random_10.txt AC 11 ms 9052 KiB
02_random_11.txt AC 12 ms 9156 KiB
02_random_12.txt AC 11 ms 9100 KiB