結果

問題 No.825 賢いお買い物
ユーザー bookb
提出日時 2019-05-26 03:08:02
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 351 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 82,448 KB
実行使用メモリ 53,960 KB
最終ジャッジ日時 2024-09-17 15:08:33
合計ジャッジ時間 1,407 ms
ジャッジサーバーID
(参考情報)
judge6 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 2 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

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

# n = A + B - C
# print(n)
# if A + B <= C:
#     print("impossible")
n = A + B - C
    # elif n > 10^100:
    #     print("impossible")
if n <= 10 and A >= n:
    print("a")
elif n <= 10 and A <n:
    print(A+10*(n-A))
elif n > 10 :
    n1 = n + n//10
    if n1 <= A:
        n2 = n1 - n1//10*10
        print(n2)
0