提出 #20904998


ソースコード 拡げる

import sys
input = sys.stdin.readline
import numpy as np

#    int(input())
#    input().split().strip()
#    map(int, input().strip().split())


a, b, w =  map(int, input().strip().split())
w = w*1000

top = w // a
bottom = w-1 // b +1



if w % a > (b-a)*(w//a):
    print("UNSATISFIABLE")

elif b - (w % b) > (b-a)*((w-1)//b+1):
    print("UNSATISFIABLE")
else:

    print(bottom, top)

提出情報

提出日時
問題 B - Many Oranges
ユーザ rsypoz
言語 Python (3.8.2)
得点 0
コード長 414 Byte
結果 WA
実行時間 117 ms
メモリ 27120 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 0 / 200
結果
AC × 1
WA × 2
AC × 7
WA × 19
セット名 テストケース
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, sample_01.txt, sample_02.txt, sample_03.txt
ケース名 結果 実行時間 メモリ
hand_01.txt WA 117 ms 26604 KiB
hand_02.txt WA 107 ms 26904 KiB
hand_03.txt WA 110 ms 26948 KiB
hand_04.txt WA 110 ms 26808 KiB
hand_05.txt WA 110 ms 26736 KiB
hand_06.txt AC 110 ms 26944 KiB
hand_07.txt WA 111 ms 26908 KiB
random_01.txt WA 113 ms 26844 KiB
random_02.txt WA 115 ms 26636 KiB
random_03.txt WA 108 ms 26848 KiB
random_04.txt WA 109 ms 26804 KiB
random_05.txt WA 112 ms 26816 KiB
random_06.txt AC 110 ms 26900 KiB
random_07.txt WA 108 ms 26816 KiB
random_08.txt WA 113 ms 26928 KiB
random_09.txt WA 110 ms 27120 KiB
random_10.txt WA 107 ms 26952 KiB
random_11.txt WA 109 ms 26844 KiB
random_12.txt WA 109 ms 26908 KiB
random_13.txt AC 111 ms 26892 KiB
random_14.txt AC 112 ms 26504 KiB
random_15.txt AC 106 ms 26844 KiB
random_16.txt AC 110 ms 26816 KiB
sample_01.txt WA 107 ms 26900 KiB
sample_02.txt WA 107 ms 27036 KiB
sample_03.txt AC 110 ms 26908 KiB