結果

問題 No.745 letinopia raoha
ユーザー 💕💖💞💕💖💞
提出日時 2018-10-21 17:42:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 533 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-29 20:19:00
合計ジャッジ時間 958 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 31 ms
10,624 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 30 ms
10,624 KB
testcase_05 RE -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 30 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

a = [ 0 for i in range(400+1)]
for i in range(1, A+1):
  if i > 300:
    a[i] = 8*100
  if 300 >= i > 200:
    a[i] = 4*100
  if 200 >= i > 100:
    a[i] = 2*100
  if 100 >= i:
    a[i] = 1*100

b = [ 0 for i in range(400+1)]
for i in range(1, B+1):
  if i > 300:
    b[i] = 8*50
  if 300 >= i > 200:
    b[i] = 4*50
  if 200 >= i > 100:
    b[i] = 2*50
  if 100 >= i:
    b[i] = 1*50
  
#print(sum(a))

if D >= 10:
  print('Impossible')
  exit()

print('Possible')
print(sum(a) + sum(b))
0