벌써 이주식을 가지고 있은지 1년 6개월 정도가 된것 같다. 처음엔 싸다고 생각하고 지른 가격이 10만원 이상이였는데, 이상하게 계속 밑으로 하방을 하였다. 외국인의 지속적인 패대기. 그후 기관이 외인의 주식을 받는듯 하였지만, 외인의 끊임없는 패대기에 항복을 하고, 기관도 공매도 시작 6만원대까지 주식이 떨어진다. 무려 -40% 7만원이 무너질때마다 하나, 두개씩 주운 주식이 나름 수백만원이다. 그래도 처음 워낙 평단이 높아 물탄가격이 96천 정도. 1년 5개월이 이놈이 6~9만 사이를 왔다갔다 한다. 그래도 난 버틴다. 오늘 1월 5일 기점으로 95천정도 되었다. 약 -3% 정도. 이정도면 진짜 질기게 가지고 있었다. 앞으로가 문제다. 이제 본전이 왔는데, 언제까지 버텨볼까... 10만원 오면 또 밑으로 하방할 확률이 높다. 그래도 팔지는 못하겠다. 한번 2016년까지 보자.


다른건 모르겠고, 거대 기업은 뒷힘이 쎄다는 걸 항상 믿고 있으니...

'주식' 카테고리의 다른 글

한국가스공사  (0) 2015.04.08
락앤락.  (0) 2015.03.06
NHN엔터테인먼트  (0) 2014.12.11
nhn엔터 2014년 11월 7일 하한가  (0) 2014.11.07
NHN엔터테인먼트  (0) 2014.11.03
by Invincible Cooler 2015. 1. 5. 17:45

Tension between the United States and North Korea further escalatedover the weekend as Washington imposed new economic sanctions Friday against Pyongyang in retaliation for the reclusive regime’s alleged cyberattack on Sony Pictures Entertainment.

소니 픽쳐스 엔터테인먼트 관련 사이버 공격의 혐의를 받고 있는 은둔한 정권(김정은 정권이 외부와 고립이 되어 이렇게 표현한것 같다)에 대한 보복으로 워싱턴(미국의 white house)은 금요일 북한에 대해서 새로운 경제 재재를 부과함으로써 미국와 북한의 긴장감이 치솟고 있다.

The North’s Foreign Ministry responded angrily to the punitivemeasures Sundaysaying that America’s “tenacious adherence” to a hostile policy toward the North would further reinforce its will to protect its sovereignty.

북한의 외무부는 일요일 징계에 대해서 화가나서 반응하였는데, 미국의 북한에 대한 적대적 정책의 집요한 집착(계속적으로 나쁜 징계를 계속해서 이렇게 표현한것 같음)은  국권 수호의 의지를 더 강하게 하는것이라고 말하였다.(이런 미국의 징계가 북한을 고립시키는 것이 아닌, 북한을 더욱 하나로 만드는 것이라고 나름 생각하고 있음)


U.S. President Barack Obama signed an executive order Fridaywhile on vacation in Hawaiito approve sanctions against three North Korean organizations and 10 senior officials as part of his “proportional response” to the attack on Sony that produced the “Interview,” a comedy about a scheme to assassinate North Korean leader Kim Jong-un.
하와이에서 휴가중인 오바마 미국 대통령은 금요일, 소니사에서 제작을한 "인터뷰"-(북한 통치자 김정은에 대한 암살을 다룬 영화)에 대한 공격과 관련 있는 3개의 북한 조직과 10명의 수석 공무관에 대해서 제재 승인에 대해서 행정명령을 내렸다.

Announcing the decisionthe White House accused the North of carrying out “provocativedestabilizing and repressive actions and policiesparticularly its destructive and coercive cyberattack on Sony Pictures.” It also said, “Today’s actions are the first aspect of our response.” 

Seoul’s Foreign Ministry called the sanctions an “appropriate response,” reiterating that cyberattacks to damage private andcorporate interests and the openness and security of cyberspace should not be tolerated

Those sanctioned will be banned from accessing the U.S. financial system and doing any transactions with U.S. nationalsBut the largely symbolic sanctions are unlikely to further damage the economy of the heavily isolated country which is already under a series of international sanctions for its nuclear and missile tests.

The sanctions target the North’s Reconnaissance General Bureauthe country’s premier military spy agencywhich Washington and Seoul believe orchestrated a series of cyber incursions against themSeoul also blames the RGB for launching a string of fatal provocations including the 2010 torpedo attack on the corvette Cheonan that killed46 sailors

Korea Mining Development Trading Corp., in charge of the arms exportsand Korea Tangun Trading Corp., a defense research agency,have also been added to the sanctions listas well as 10 senior officialsincluding those operating in IranSyriaChinaRussia and Namibia.

Even as the FBI continues its investigation into the cyberattack against Sony Pictures Entertainmentthese steps underscore that we willemploy a broad set of tools to defend U.S. businesses and citizens,and to respond to attempts to undermine our values or threaten thenational security of the United States,” U.S. Treasury secretary JackLew said in a statement.

The sanctions came as Pyongyang has hardened its rhetoric againstthe U.S., while continuing its peace offensive toward the South andrefraining from launching its usual verbal attacks against Seoul.

The U.S. is wholly responsible for its hitherto antagonistichostilerelationship with North KoreaThe U.S. should throw away its hostilepolicy toward the North,” said a piece in Saturday’s edition of theRodong Sinmunthe daily of the North’s ruling Workers’ Party.

Should the U.S. come forward with good will while respecting oursovereignty without intervening in our internal affairswe would respondto that accordingly.” 

The two Koreas have moved closer to dialogue since the North Koreanleader demonstrated his desire to hold a “top-level meeting” with theSouth and restore cross-border ties in his New Year address.

Supporting the U.S. sanctions against the NorthSeoul appears to have reaffirmed that it would deal separately with the issues of inter-Korean cooperation and provocations such as the nuclear development and cybervandalism.

In response to Kim’s New Year’s addressSeoul reiterated that itremained open to dialogue in any formSome observers said the Northcould specify its desire for inter-Korean talks this weekwhile otherspresume that it may wait until after President Park Geun-hye deliversher New Year’s speechwhich is expected to be delivered on Jan. 12.

The upcoming impediment to inter-Korean dialogue would be theplanned annual military exercise between the U.S. and South Korea,which will begin in FebruaryThe North Korean leader has called on theallies to cancel the exercisebut the South said the “defense” drills willproceed as planned.

by Invincible Cooler 2015. 1. 5. 17:39

A non-empty zero-indexed array A consisting of N integers and sorted in a non-decreasing order is given. The leader of this array is the value that occurs in more than half of the elements of A.

 

You are given an implementation of a function:

 

class Solution { public int solution(int[] A); }

 

that, given a non-empty zero-indexed array A consisting of N integers, sorted in a non-decreasing order, returns the leader of array A. The function should return 1 if array A does not contain a leader.

 

For example, given array A consisting of ten elements such that:

 

  A[0] = 2

  A[1] = 2

  A[2] = 2

  A[3] = 2

  A[4] = 2

  A[5] = 3

  A[6] = 4

  A[7] = 4

  A[8] = 4

  A[9] = 6

the function should return 1, because the value that occurs most frequently in the array, 2, occurs five times, and 5 is not more than half of 10.

 

Given array A consisting of five elements such that:

 

  A[0] = 1

  A[1] = 1

  A[2] = 1

  A[3] = 1

  A[4] = 50

the function should return 1.

 

Unfortunately, despite the fact that the function may return expected result for the example input, there is a bug in the implementation, which may produce incorrect results for other inputs. Find the bug and correct it. You should modify at most three lines of code.

 

Assume that:

 

N is an integer within the range [1..100,000];

each element of array A is an integer within the range [0..2147483647];

array A is sorted in non-decreasing order.

Complexity:

 

expected worst-case time complexity is O(N);

expected worst-case space complexity is O(N), beyond input storage (not counting the storage required for input arguments).

Elements of input arrays can be modified.


initial code

int solution(int[] A) {

             int n = A.length;

             int[] L = new int[n + 1];

             L[0] = -1;

             for (int i = 0; i < n; i++) {

                    L[i + 1] = A[i];

             }

             int count = 0;

             int pos = (n + 1) / 2;

             int candidate = L[pos];

             for (int i = 1; i <= n; i++) {

                    if (L[i] == candidate)

                           count = count + 1;

             }

             if (count > pos)

                    return candidate;

             return (-1);

       }


=> answer 100/100 드디어 100점이 나오다.

import java.util.*; class Solution { int solution(int[] A) { int n = A.length; int[] L = new int[n + 1]; L[0] = -1; for (int i = 0; i < n; i++) { L[i + 1] = A[i]; } int count = 0; int pos = (n + 1) / 2; int candidate = L[pos]; for (int i = 1; i <= n; i++) { if (L[i] == candidate) count = count + 1; } if (n%2==0 ? count > pos : count > pos -1) // <=========== return candidate; return (-1); } }


by Invincible Cooler 2014. 12. 16. 14:02