結果
問題 | No.1111 コード進行 |
ユーザー | 👑 Kazun |
提出日時 | 2020-07-10 22:32:20 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 621 bytes |
コンパイル時間 | 275 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 315,812 KB |
最終ジャッジ日時 | 2024-04-19 21:00:30 |
合計ジャッジ時間 | 21,633 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 99 ms
82,048 KB |
testcase_01 | AC | 80 ms
75,776 KB |
testcase_02 | AC | 75 ms
76,032 KB |
testcase_03 | AC | 78 ms
76,160 KB |
testcase_04 | AC | 81 ms
76,288 KB |
testcase_05 | AC | 306 ms
198,272 KB |
testcase_06 | AC | 1,100 ms
284,416 KB |
testcase_07 | AC | 968 ms
284,520 KB |
testcase_08 | AC | 315 ms
136,444 KB |
testcase_09 | AC | 732 ms
248,448 KB |
testcase_10 | AC | 1,379 ms
302,088 KB |
testcase_11 | AC | 312 ms
135,808 KB |
testcase_12 | AC | 1,321 ms
282,368 KB |
testcase_13 | AC | 573 ms
279,680 KB |
testcase_14 | TLE | - |
testcase_15 | AC | 230 ms
111,292 KB |
testcase_16 | AC | 1,552 ms
283,848 KB |
testcase_17 | AC | 1,253 ms
297,772 KB |
testcase_18 | AC | 243 ms
135,936 KB |
testcase_19 | AC | 153 ms
93,824 KB |
testcase_20 | AC | 348 ms
190,720 KB |
testcase_21 | AC | 121 ms
80,128 KB |
testcase_22 | AC | 1,934 ms
315,812 KB |
testcase_23 | AC | 647 ms
276,540 KB |
testcase_24 | AC | 764 ms
285,440 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)] F=[[] for _ in range(S+1)] for _ in range(M): p,q,c=map(int,input().split()) E[p].append((q,c)) F[q].append((p,c)) Y=0 for f in range(1,S+1): X=[[[0]*(K+1) for _ in range(S+1)] for _ in range(N)] #X[n][a][k]...n個目のコードがaで総複雑度がk X[0][f][0]=1 for n in range(1,N): for a in range(1,S+1): for (q,c) in F[a]: for k in range(c,K+1): X[n][a][k]=(X[n][a][k]+X[n-1][q][k-c])%A for a in range(1,S+1): Y=(Y+X[-1][a][-1])%A print(Y)