結果
問題 | No.1111 コード進行 |
ユーザー | 👑 Kazun |
提出日時 | 2020-07-10 22:28:02 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 532 bytes |
コンパイル時間 | 401 ms |
コンパイル使用メモリ | 82,220 KB |
実行使用メモリ | 271,124 KB |
最終ジャッジ日時 | 2024-04-19 20:58:41 |
合計ジャッジ時間 | 7,745 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 38 ms
66,500 KB |
testcase_01 | AC | 39 ms
56,960 KB |
testcase_02 | AC | 39 ms
57,088 KB |
testcase_03 | AC | 39 ms
56,960 KB |
testcase_04 | AC | 40 ms
57,088 KB |
testcase_05 | AC | 39 ms
57,216 KB |
testcase_06 | AC | 341 ms
99,876 KB |
testcase_07 | AC | 1,868 ms
208,996 KB |
testcase_08 | TLE | - |
testcase_09 | AC | 79 ms
78,264 KB |
testcase_10 | AC | 1,162 ms
189,968 KB |
testcase_11 | AC | 706 ms
135,496 KB |
testcase_12 | AC | 598 ms
116,236 KB |
testcase_13 | AC | 50 ms
66,392 KB |
testcase_14 | TLE | - |
testcase_15 | AC | 612 ms
171,692 KB |
testcase_16 | AC | 723 ms
149,488 KB |
testcase_17 | AC | 284 ms
106,932 KB |
testcase_18 | AC | 39 ms
58,328 KB |
testcase_19 | AC | 37 ms
57,756 KB |
testcase_20 | AC | 45 ms
62,988 KB |
testcase_21 | AC | 699 ms
130,856 KB |
testcase_22 | AC | 40 ms
58,004 KB |
testcase_23 | AC | 411 ms
123,624 KB |
testcase_24 | AC | 210 ms
91,092 KB |
testcase_25 | TLE | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
testcase_33 | -- | - |
testcase_34 | -- | - |
testcase_35 | -- | - |
testcase_36 | -- | - |
testcase_37 | -- | - |
testcase_38 | -- | - |
testcase_39 | -- | - |
testcase_40 | -- | - |
testcase_41 | -- | - |
testcase_42 | -- | - |
testcase_43 | -- | - |
testcase_44 | -- | - |
testcase_45 | -- | - |
testcase_46 | -- | - |
testcase_47 | -- | - |
testcase_48 | -- | - |
testcase_49 | -- | - |
ソースコード
A=10**9+7 N,M,K=map(int,input().split()) S=300 E=[[] for _ in range(S+1)] for i in range(M): p,q,c=map(int,input().split()) E[p].append((q,c)) H={} def f(F,R,L): """ F:From R:残り複雑度 L:残りコード数 """ if (F,R,L) in H: return H[(F,R,L)] if L==0: t=1*(R==0) H[(F,R,L)]=t return t K=0 for (q,c) in E[F]: K=(K+f(q,R-c,L-1))%A H[(F,R,L)]=K return K V=0 for i in range(1,S+1): V=(V+f(i,K,N-1))%A print(V%A)