結果

問題 No.2701 A cans -> B cans
ユーザー hirayuu_ychirayuu_yc
提出日時 2024-02-29 16:50:02
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 324 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 72,712 KB
最終ジャッジ日時 2024-02-29 18:18:26
合計ジャッジ時間 38,988 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 38 ms
53,460 KB
testcase_02 AC 37 ms
53,460 KB
testcase_03 AC 53 ms
64,440 KB
testcase_04 AC 50 ms
64,440 KB
testcase_05 AC 49 ms
64,440 KB
testcase_06 AC 49 ms
64,440 KB
testcase_07 AC 49 ms
64,440 KB
testcase_08 AC 50 ms
64,440 KB
testcase_09 AC 50 ms
64,440 KB
testcase_10 AC 53 ms
64,440 KB
testcase_11 AC 50 ms
64,440 KB
testcase_12 AC 50 ms
64,440 KB
testcase_13 AC 50 ms
64,440 KB
testcase_14 AC 50 ms
64,440 KB
testcase_15 AC 50 ms
64,440 KB
testcase_16 AC 50 ms
64,440 KB
testcase_17 AC 50 ms
64,440 KB
testcase_18 AC 50 ms
64,440 KB
testcase_19 AC 50 ms
64,440 KB
testcase_20 AC 50 ms
64,440 KB
testcase_21 AC 50 ms
64,440 KB
testcase_22 AC 51 ms
64,440 KB
testcase_23 AC 274 ms
70,628 KB
testcase_24 AC 281 ms
70,628 KB
testcase_25 AC 731 ms
70,632 KB
testcase_26 AC 742 ms
72,712 KB
testcase_27 AC 747 ms
70,636 KB
testcase_28 AC 759 ms
72,712 KB
testcase_29 AC 748 ms
72,712 KB
testcase_30 AC 773 ms
72,712 KB
testcase_31 AC 747 ms
72,712 KB
testcase_32 AC 755 ms
72,712 KB
testcase_33 AC 745 ms
70,632 KB
testcase_34 AC 761 ms
70,632 KB
testcase_35 AC 763 ms
72,712 KB
testcase_36 AC 756 ms
72,712 KB
testcase_37 AC 757 ms
72,712 KB
testcase_38 AC 766 ms
72,712 KB
testcase_39 WA -
testcase_40 AC 778 ms
72,712 KB
testcase_41 AC 765 ms
70,636 KB
testcase_42 WA -
testcase_43 AC 763 ms
72,712 KB
testcase_44 AC 769 ms
70,636 KB
testcase_45 AC 756 ms
72,712 KB
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 WA -
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 AC 846 ms
70,636 KB
testcase_67 AC 1,043 ms
70,636 KB
testcase_68 AC 1,004 ms
70,636 KB
testcase_69 AC 956 ms
70,636 KB
testcase_70 AC 1,054 ms
70,636 KB
testcase_71 AC 1,009 ms
70,636 KB
testcase_72 AC 1,010 ms
70,636 KB
testcase_73 AC 891 ms
70,636 KB
testcase_74 AC 966 ms
70,636 KB
testcase_75 AC 898 ms
70,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
#sys.setrecursionlimit((1<<19)-1)
#import pypyjit
#pypyjit.set_param('max_unroll_recursion=-1')
input=sys.stdin.buffer.readline

N,M=map(int,input().split())
can=[tuple(map(int,input().split())) for i in range(N)]
for i in range(1,M+1):
	ans=0
	for a,b,c in can:
	    ans=max(ans,((i-a)//(a-b)+1)*c*b)
	print(ans)
0