結果

問題 No.2188 整数列コイントスゲーム
ユーザー shobonvipshobonvip
提出日時 2023-01-13 22:09:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 4,480 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 71,688 KB
最終ジャッジ日時 2023-08-26 03:54:57
合計ジャッジ時間 7,955 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,144 KB
testcase_01 AC 72 ms
71,384 KB
testcase_02 AC 72 ms
71,452 KB
testcase_03 AC 71 ms
71,604 KB
testcase_04 AC 71 ms
71,416 KB
testcase_05 WA -
testcase_06 AC 71 ms
71,500 KB
testcase_07 WA -
testcase_08 AC 71 ms
71,148 KB
testcase_09 AC 71 ms
71,628 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 72 ms
71,288 KB
testcase_13 AC 73 ms
71,288 KB
testcase_14 WA -
testcase_15 AC 72 ms
71,456 KB
testcase_16 AC 74 ms
71,348 KB
testcase_17 AC 72 ms
71,528 KB
testcase_18 AC 72 ms
71,288 KB
testcase_19 AC 72 ms
71,144 KB
testcase_20 WA -
testcase_21 AC 71 ms
71,528 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 73 ms
71,344 KB
testcase_25 AC 71 ms
71,308 KB
testcase_26 WA -
testcase_27 AC 70 ms
71,452 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 71 ms
71,396 KB
testcase_31 AC 69 ms
71,132 KB
testcase_32 WA -
testcase_33 AC 70 ms
71,436 KB
testcase_34 AC 72 ms
71,288 KB
testcase_35 AC 72 ms
71,360 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 71 ms
71,352 KB
testcase_39 AC 72 ms
71,440 KB
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 AC 70 ms
71,288 KB
testcase_45 AC 71 ms
71,524 KB
testcase_46 AC 72 ms
71,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a ="""1 1
2 1
3 2
4 1
5 6
6 6
7 1
8 12
9 36
10 24
11 1
12 20
13 120
14 240
15 120
16 1
17 30
18 300
19 1200
20 1800
21 720
22 1
23 42
24 630
25 4200
26 12600
27 15120
28 5040
29 1
30 56
31 1176
32 11760
33 58800
34 141120
35 141120
36 40320
37 1
38 72
39 2016
40 28224
41 211680
42 846720
43 1693440
44 1451520
45 362880
46 1
47 90
48 3240
49 60480
50 635040
51 3810240
52 12700800
53 21772800
54 16329600
55 3628800
56 1
57 110
58 4950
59 118800
60 1663200
61 13970880
62 69854400
63 199584000
64 299376000
65 199584000
66 39916800
67 1
68 132
69 7260
70 217800
71 3920400
72 43908480
73 307359360
74 1317254400
75 3293136000
76 4390848000
77 2634508800
78 479001600
79 1
80 156
81 10296
82 377520
83 8494200
84 122316480
85 1141620480
86 6849722880
87 25686460800
88 57081024000
89 68497228800
90 37362124800
91 6227020800
92 1
93 182
94 14196
95 624624
96 17177160
97 309188880
98 3710266560
99 29682132480
100 155831195520
101 519437318400
102 1038874636800
103 1133317785600
104 566658892800
105 87178291200
106 1
107 210
108 19110
109 993720
110 32792760
111 721440720
112 10821610800
113 111307996800
114 779155977600
115 3636061228800
116 10908183686400
117 19833061248000
118 19833061248000
119 9153720576000
120 1307674368000
121 1
122 240
123 25200
124 1528800
125 59623200
126 1574052480
127 28857628800
128 371026656000
129 3339239904000
130 20777492736000
131 87265469491200
132 237996734976000
133 396661224960000
134 366148823040000
135 156920924160000
136 20922789888000
137 1
138 272
139 32640
140 2284800
141 103958400
142 3243502080
143 71357045760
144 1121325004800
145 12614906304000
146 100919250432000
147 565147802419200
148 2157837063782400
149 5394592659456000
150 8299373322240000
151 7113748561920000
152 2845499424768000
153 355687428096000
154 1
155 306
156 41616
157 3329280
158 174787200
159 6362254080
160 165418606080
161 3119322286080
162 42890681433600
163 428906814336000
164 3088129063219200
165 15721384321843200
166 55024845126451200
167 126980411830272000
168 181400588328960000
169 145120470663168000
170 54420176498688000
171 6402373705728000
172 1
173 342
174 52326
175 4744224
176 284653440
177 11955444480
178 362648482560
179 8081880468480
180 133351027729920
181 1629845894476800
182 14668613050291200
183 96012739965542400
184 448059453172531200
185 1447576694865100800
186 3101950060425216000
187 4135933413900288000
188 3101950060425216000
189 1094805903679488000
190 121645100408832000
191 1
192 380
193 64980
194 6627960
195 450701280
196 21633661440
197 757178150400
198 19686631910400
199 383889322252800
200 5630376726374400
201 61934143990118400
202 506733905373696000
203 3040403432242176000
204 13097122477350912000
205 39291367432052736000
206 78582734864105472000
207 98228418580131840000
208 69337707233034240000
209 23112569077678080000
210 2432902008176640000
211 1
212 420
213 79800
214 9097200
215 695935800
216 37858907520
217 1514356300800
218 45430689024000
219 1033548175296000
220 17914835038464000
221 236475822507724800
222 2364758225077248000
223 17735686688079360000
224 98228418580131840000
225 392913674320527360000
226 1100158288097476608000
227 2062796790182768640000
228 2426819753156198400000
229 1617879835437465600000
230 510909421717094400000
231 51090942171709440000
232 1
233 462
234 97020
235 12289200
236 1050726600
237 64304467920
238 2915135879040
239 99947515852800
240 2623622291136000
241 53055472998528000
242 827665378777036800
243 9931984545324441600
244 91043191665474048000
245 630299019222512640000
246 3241537813144350720000
247 12101741169072242688000
248 31767070568814637056000
249 56059536297908183040000
250 62288373664342425600000
251 39340025472216268800000
252 11802007641664880640000
253 1124000727777607680000
254 1
255 506
256 116886
257 16364040
258 1554583800
259 106333531920
260 5423010127920
261 210722679256320
262 6321680377689600
263 147505875479424000
264 2684606933725516800
265 38072607423743692800
266 418798681661180620800
267 3543681152517682176000
268 22780807409042242560000
269 109347875563402764288000
270 382717564471909675008000
271 945537512224718020608000
272 1575895853707863367680000
273 1658837740745119334400000
274 995302644447071600640000
275 284372184127734743040000
276 25852016738884976640000"""

r = list(a.split("\n"))

cnt = 0
b = []
for i in range(16):
	c = []
	for j in range(i+1):
		c.append(list(map(int,r[cnt].split()))[1])
		cnt += 1
	b.append(c)

n = int(input())
m = int(input())
if n < m:
	print(0)
else:
	print(b[n-1][m-1])
0