結果
| 問題 |
No.178 美しいWhitespace (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-03 17:26:31 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 295 bytes |
| コンパイル時間 | 559 ms |
| コンパイル使用メモリ | 6,820 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-02 12:37:41 |
| 合計ジャッジ時間 | 1,779 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 3 WA * 18 |
ソースコード
#coding: utf-8 ##yuki_178 import sys st_max=0 st_min=sys.maxint n=int(raw_input()) for i in xrange(n): a,b=map(int,raw_input().split()) st=a+b*4 if st>st_max: st_max=st if st<st_min: st_min=st #print st_max #print st_min res=st_max-st_min if res%2==1: print -1 else: print res/2