結果
問題 | No.178 美しいWhitespace (1) |
ユーザー |
![]() |
提出日時 | 2021-02-12 12:21:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 36 ms / 2,000 ms |
コード長 | 259 bytes |
コンパイル時間 | 141 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-07-19 06:32:39 |
合計ジャッジ時間 | 1,581 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 21 |
ソースコード
n=int(input()) l=[list(map(int,input().split())) for i in range(n)] L1=[] L2=[] for i in range(n): L1.append(l[i][0]+4*l[i][1]) L2.append(l[i][0]%2) if len(set(L2))!=1: print(-1) exit() m=max(L1) ans=0 for i in range(n): ans+=(m-L1[i])//2 print(ans)