結果

問題 No.804 野菜が苦手
ユーザー かいかいかいかい
提出日時 2022-11-13 19:37:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 837 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 8,020 KB
最終ジャッジ日時 2023-10-13 03:46:32
合計ジャッジ時間 1,635 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 16 ms
7,900 KB
testcase_04 AC 16 ms
7,812 KB
testcase_05 AC 16 ms
7,820 KB
testcase_06 AC 16 ms
7,816 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 16 ms
7,812 KB
testcase_15 AC 16 ms
7,856 KB
testcase_16 AC 16 ms
7,796 KB
testcase_17 AC 16 ms
7,856 KB
testcase_18 AC 16 ms
7,788 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, C, D = map(int, input().split(' '))

total = 0

for i in range(A):
    if 12 % ((i + 1) * (1 + C)) > 1 + C:
        break
    else:
        total += 1
        
if total * C != B:
    print('0')
else:
    print(total)
0