結果
問題 | No.178 美しいWhitespace (1) |
ユーザー |
|
提出日時 | 2021-07-05 14:29:21 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 2,000 ms |
コード長 | 242 bytes |
コンパイル時間 | 81 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-07-01 11:56:32 |
合計ジャッジ時間 | 1,746 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 21 |
ソースコード
N = int(input()) x = [list(map(int, input().split())) for _ in range(N)] x = list(map(lambda x: x[0]+x[1]*4, x)) if len(set(map(lambda x: x&1, x)))==2: print(-1) exit() lim = max(x) ans = 0 for y in x: ans += (lim-y)//2 print(ans)