Submission #41898
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | h,w = map( int ,raw_input().split()) arr = [map( int ,raw_input().split()) for i in range(h)] for i in range(1,w): arr[0][i] = arr[0][i] + arr[0][i-1] for j in range(1,h): arr[j][0] = arr[j][0] + arr[j-1][0] for i in range(1,h): for j in range(1,w): arr[i][j] = max(arr[i-1][j] + arr[i][j], arr[i][j-1] + arr[i][j]) print arr[h-1][w-1] |
ステータス
項目 | データ |
---|---|
問題 | 0910 - 百円以下の拾得物 |
ユーザー名 | daleksprinter |
投稿日時 | 2018-08-25 14:42:19 |
言語 | Python2 |
状態 | Accepted |
得点 | 3 |
ソースコード長 | 355 Byte |
最大実行時間 | 805 ms |
最大メモリ使用量 | 51928 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 3 / 3 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in01.txt | AC | 42 ms | 2444 KB |
1
|
in02.txt | AC | 40 ms | 2276 KB |
1
|
in03.txt | AC | 36 ms | 2364 KB |
1
|
in04.txt | AC | 28 ms | 2452 KB |
1
|
in05.txt | AC | 49 ms | 2412 KB |
1
|
in06.txt | AC | 781 ms | 38592 KB |
1
|
in07.txt | AC | 805 ms | 42356 KB |
1
|
in08.txt | AC | 771 ms | 47136 KB |
1
|
in09.txt | AC | 787 ms | 51928 KB |
1
|
in10.txt | AC | 40 ms | 19852 KB |
1
|
in11.txt | AC | 510 ms | 43468 KB |
1
|
sample_in_1.txt | AC | 39 ms | 22656 KB |
1
|
sample_in_2.txt | AC | 40 ms | 22620 KB |
1
|