結果

問題 No.2701 A cans -> B cans
ユーザー mkawa2mkawa2
提出日時 2024-03-29 22:24:48
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 918 bytes
コンパイル時間 650 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 73,488 KB
最終ジャッジ日時 2024-03-29 22:25:47
合計ジャッジ時間 58,552 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,460 KB
testcase_01 AC 36 ms
53,460 KB
testcase_02 AC 35 ms
53,460 KB
testcase_03 AC 49 ms
64,440 KB
testcase_04 AC 53 ms
64,440 KB
testcase_05 AC 54 ms
64,440 KB
testcase_06 AC 54 ms
64,440 KB
testcase_07 AC 52 ms
64,440 KB
testcase_08 AC 52 ms
64,440 KB
testcase_09 AC 52 ms
64,440 KB
testcase_10 AC 53 ms
64,440 KB
testcase_11 AC 52 ms
64,440 KB
testcase_12 AC 52 ms
64,440 KB
testcase_13 AC 53 ms
64,440 KB
testcase_14 AC 52 ms
64,440 KB
testcase_15 AC 53 ms
64,440 KB
testcase_16 AC 50 ms
64,440 KB
testcase_17 AC 49 ms
64,440 KB
testcase_18 AC 48 ms
64,440 KB
testcase_19 AC 49 ms
64,440 KB
testcase_20 AC 49 ms
64,440 KB
testcase_21 AC 49 ms
64,440 KB
testcase_22 AC 49 ms
64,440 KB
testcase_23 AC 479 ms
72,832 KB
testcase_24 AC 493 ms
72,832 KB
testcase_25 TLE -
testcase_26 TLE -
testcase_27 TLE -
testcase_28 TLE -
testcase_29 TLE -
testcase_30 TLE -
testcase_31 TLE -
testcase_32 TLE -
testcase_33 TLE -
testcase_34 TLE -
testcase_35 TLE -
testcase_36 TLE -
testcase_37 TLE -
testcase_38 TLE -
testcase_39 TLE -
testcase_40 TLE -
testcase_41 TLE -
testcase_42 TLE -
testcase_43 TLE -
testcase_44 TLE -
testcase_45 TLE -
testcase_46 TLE -
testcase_47 TLE -
testcase_48 TLE -
testcase_49 TLE -
testcase_50 TLE -
testcase_51 TLE -
testcase_52 TLE -
testcase_53 TLE -
testcase_54 TLE -
testcase_55 TLE -
testcase_56 WA -
testcase_57 WA -
testcase_58 WA -
testcase_59 WA -
testcase_60 WA -
testcase_61 WA -
testcase_62 WA -
testcase_63 WA -
testcase_64 WA -
testcase_65 WA -
testcase_66 TLE -
testcase_67 TLE -
testcase_68 TLE -
testcase_69 TLE -
testcase_70 TLE -
testcase_71 TLE -
testcase_72 TLE -
testcase_73 TLE -
testcase_74 TLE -
testcase_75 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

# sys.setrecursionlimit(1000005)
# sys.set_int_max_str_digits(200005)
int1 = lambda x: int(x)-1
pDB = lambda *x: print(*x, end="\n", file=sys.stderr)
p2D = lambda x: print(*x, sep="\n", end="\n\n", file=sys.stderr)
def II(): return int(sys.stdin.readline())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]
def SI(): return sys.stdin.readline().rstrip()

dij = [(0, 1), (-1, 0), (0, -1), (1, 0)]
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)]
# inf = -1-(-1 << 31)
inf = -1-(-1 << 62)

# md = 10**9+7
md = 998244353

n,m=LI()
abc=LLI(n)
for p in range(1,m+1):
    ans=0
    for a,b,c in abc:
        cur=((p-a)//(a-b)+1)*b*c
        if cur>ans:ans=cur
    print(ans)
0