結果
問題 | No.2261 Coffee |
ユーザー |
![]() |
提出日時 | 2023-04-07 21:38:28 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 476 bytes |
コンパイル時間 | 378 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 197,580 KB |
最終ジャッジ日時 | 2024-04-10 16:45:57 |
合計ジャッジ時間 | 13,319 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 35 ms
57,856 KB |
testcase_01 | AC | 37 ms
57,216 KB |
testcase_02 | AC | 36 ms
52,352 KB |
testcase_03 | AC | 39 ms
52,352 KB |
testcase_04 | AC | 39 ms
57,600 KB |
testcase_05 | AC | 41 ms
59,648 KB |
testcase_06 | AC | 44 ms
61,056 KB |
testcase_07 | AC | 36 ms
52,864 KB |
testcase_08 | AC | 45 ms
61,056 KB |
testcase_09 | AC | 41 ms
60,148 KB |
testcase_10 | AC | 58 ms
70,240 KB |
testcase_11 | AC | 59 ms
70,272 KB |
testcase_12 | AC | 54 ms
67,840 KB |
testcase_13 | AC | 57 ms
67,328 KB |
testcase_14 | AC | 55 ms
69,248 KB |
testcase_15 | AC | 50 ms
66,688 KB |
testcase_16 | AC | 52 ms
67,760 KB |
testcase_17 | AC | 1,221 ms
80,364 KB |
testcase_18 | AC | 1,095 ms
80,444 KB |
testcase_19 | AC | 917 ms
79,744 KB |
testcase_20 | AC | 699 ms
79,488 KB |
testcase_21 | AC | 1,226 ms
80,224 KB |
testcase_22 | AC | 766 ms
79,488 KB |
testcase_23 | AC | 1,328 ms
80,640 KB |
testcase_24 | TLE | - |
testcase_25 | -- | - |
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 | -- | - |
ソースコード
n = int(input()) li = [list(map(int, input().split())) for _ in range(n)] l = [] for i in range(n): t = [] for j in range(32): x = 0 for k in range(5): if (j >> k) & 1: x += li[i][k] else: x -= li[i][k] t.append(x) l.append(t) l2 = list(zip(*l)) for i in range(n): ans = 0 for j in range(32): ans = max(ans, max(l2[j]) - l2[j][i], l2[j][i] - min(l2[j])) print(ans)