Skip to content

Instantly share code, notes, and snippets.

@ilsubyeega
Created April 27, 2020 15:06
Show Gist options
  • Save ilsubyeega/bee42acd6367b3591f9e0eb8951b6563 to your computer and use it in GitHub Desktop.
Save ilsubyeega/bee42acd6367b3591f9e0eb8951b6563 to your computer and use it in GitHub Desktop.
var p=3;
var i; // input
if (i==1) a++;
if (i==2) z++;
if (z==p){
a++;
z=0;
} else {
b++;
}
if (i==3) c++;
console.log(a, b, c);
// YES 부분은 true라고 인식한다. YES위치가 없는 경우는 바로 앞이라고 생각한다.
var h, t, t1, t2, m, m1, m2; // read
while(true){
t1 = t1;
t2 = t2;
var a = m1 + t1;
var b = m2 + t2;
var c = a - b;
if (c>0) // useless
if (c<0) // useless
if (0.01<c/h){
break;
} else {
t1 = t1*(1+n);
t2 = t - t1;
}
if (0.01<(t2/t1) && 0.14>(t2/t1)) break; // 아닐 경우 반복
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment