2017 Problems
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+4
- 2017/finals/fox_patrols.htmlAdded+82
- 2017/finals/holes.cppAdded+237
- 2017/finals/holes.htmlAdded+69
- 2017/finals/holes.inAdded+3
- 2017/finals/holes.mdAdded+82
- 2017/finals/holes.outAdded+30
- 2017/finals/moles.cppAdded+247
- 2017/finals/moles.htmlAdded+88
- 2017/finals/moles.inAdded
- 2017/finals/moles.mdAdded+75
- 2017/finals/moles.outAdded+30
- 2017/finals/patrols.cppAdded+123
- 2017/finals/patrols.htmlAdded+82
- 2017/finals/patrols.inAdded+31
- 2017/finals/patrols.mdAdded+72
- 2017/finals/patrols.outAdded+30
- 2017/finals/poles.cppAdded+202
- 2017/finals/poles.htmlAdded+55
- 2017/finals/poles.inAdded+3
- 2017/finals/poles.mdAdded+73
- 2017/finals/poles.outAdded+30
- 2017/finals/strolls.cppAdded+170
- 2017/finals/strolls.htmlAdded+73
- 2017/finals/strolls.inAdded+3
- 2017/finals/strolls.mdAdded+70
- 2017/finals/strolls.outAdded+30
- 2017/finals/tolls.cppAdded+210
- 2017/finals/tolls.htmlAdded+100
- 2017/finals/tolls.inAdded+3
- 2017/finals/tolls.mdAdded+89
- 2017/finals/tolls.outAdded+30
- 2017/quals/592385891651966.jpgAdded
- 2017/quals/fightingthezombie.htmlAdded+86
- 2017/quals/fightingthezombie.inAdded
- 2017/quals/fightingthezombie.javaAdded+107
- 2017/quals/fightingthezombie.mdAdded+58
- 2017/quals/fightingthezombie.outAdded+2005
- 2017/quals/lazyloading.htmlAdded+78
- 2017/quals/lazyloading.inAdded
- 2017/quals/lazyloading.javaAdded+46
- 2017/quals/lazyloading.mdAdded+63
- 2017/quals/lazyloading.outAdded+1005
- 2017/quals/progresspie.htmlAdded+72
- 2017/quals/progresspie.inAdded+2006
- 2017/quals/progresspie.javaAdded+46
- 2017/quals/progresspie.mdAdded+56
- 2017/quals/progresspie.outAdded+2005
- 2017/round1/268425761045248.jpgAdded
- 2017/round1/336634350719298.jpgAdded
67 unmodified lines68697067 unmodified lines2016/finals/maximinimax_flow.in filter=lfs diff=lfs merge=lfs -text2016/finals/rainbow_string.in filter=lfs diff=lfs merge=lfs -text2016/finals/rng.in filter=lfs diff=lfs merge=lfs -text67 unmodified lines6869707172737467 unmodified lines2016/finals/maximinimax_flow.in filter=lfs diff=lfs merge=lfs -text2016/finals/rainbow_string.in filter=lfs diff=lfs merge=lfs -text2016/finals/rng.in filter=lfs diff=lfs merge=lfs -text2017/finals/holes.in filter=lfs diff=lfs merge=lfs -text2017/finals/poles.in filter=lfs diff=lfs merge=lfs -text2017/finals/strolls.in filter=lfs diff=lfs merge=lfs -text2017/finals/tolls.in filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182<p>A certain well-hidden valley is home to a thriving population of mysterious creatures — Foxen!However, keeping the valley safe from outsiders (such as humans) is a necessity.To that end, a group of Foxen have been sent out to patrol the border.</p>
<p>On their patrol route, the Foxen know that they're going to pass by an interesting, rectangular forest.When viewed from above, the forest can be modeled as a grid of cellswith <strong>R</strong> rows and <strong>C</strong> columns. The rows are numbered from 1 to <strong>R</strong> from North to South, while the column are numbered from 1 to <strong>C</strong> from West to East.One tree is growing in the center of each cell, and each tree's height (in metres) is some positive integer no larger than <strong>H</strong>. </p>
<p>If the Foxen were to look at the forest from the North side, all of the trees in any given column of cells would obscure each other and blend together. In fact, the Foxen would really only be able make out the overall shape of the forest's "skyline" when viewed from that direction. This Northern skyline can be expressed as a sequence of <strong>C</strong> positive integers, with the <em>i</em>th one being the largest of the <strong>R</strong> tree heights in the <em>i</em>th column.</p>
<p>Similarly, if they were to look at the forest from the West side, they would only be able to make out the shape of its skyline from that direction. This Western skyline is a sequence of <strong>R</strong> positive integers, with the <em>i</em>th one being the largest of the <strong>C</strong> tree heights in the <em>i</em>th row.</p>
<p>On their way to the forest, the Foxen find themselves wondering about what it might look like. They've done their research and are aware of its dimensions <strong>R</strong> and <strong>C</strong>, as well as the maximum possible height of its trees <strong>H</strong>, but they don't know the actual heights of any of its trees. They'd like to determine how many different, distinct-looking forests they might end up finding. A forest is a set of heights for all <strong>R</strong>x<strong>C</strong> trees, and two forests are considered to be distinct-looking from one another if their Northern skyline sequences differ and/or their Western skyline sequences differ. </p>
<p>Please help the Foxen determine the number of possible different, distinct-looking forests! As this quantity may be quite large, they're only interested in its value when taken modulo 1,000,000,007.</p>
<h3>Input</h3>
<p>Input begins with an integer <strong>T</strong>, the number of different forests visited by the Foxen.For each forest, there is a single line containing the three space-separated integers <strong>R</strong>, <strong>C</strong>, and <strong>H</strong>.</p>
<h3>Output</h3>
<p>For the <em>i</em>th forest, print a line containing "Case #<strong>i</strong>: " followed by the number of possible different, distinct-looking forests modulo 1,000,000,007.</p>
<h3>Constraints</h3>
<p>1 ≤ <strong>T</strong> ≤ 30 <br />1 ≤ <strong>R</strong>, <strong>C</strong>, <strong>H</strong> ≤ 500,000 <br /></p>
<h3>Explanation of Sample</h3>
<p>In the first case, there are 10 possible different, distinct-looking forests which consist of a 2x2 grid of trees, with each tree being either 1m or 2m tall. For example, the following 2 forests look different (even though their Western skylines are equal, their Northern skylines differ), so both should be counted:</p>
<pre> 1 2 2 1 1 1 1 1</pre> <p>On the other hand, the following 2 forests look identical to one another from both the North and the West, so only one of them should be counted:</p>
<pre> 1 2 2 2 2 1 2 1</pre>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237// Hacker Cup 2017
// Final Round
// Fox Holes
// Jacob Plachta
#include <algorithm>
#include <functional>
#include <numeric>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <cassert>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <sstream>
using namespace std;
#define LL long long
#define LD long double
#define PR pair<int,int>
#define Fox(i,n) for (i=0; i<n; i++)
#define Fox1(i,n) for (i=1; i<=n; i++)
#define FoxI(i,a,b) for (i=a; i<=b; i++)
#define FoxR(i,n) for (i=(n)-1; i>=0; i--)
#define FoxR1(i,n) for (i=n; i>0; i--)
#define FoxRI(i,a,b) for (i=b; i>=a; i--)
#define Foxen(i,s) for (i=s.begin(); i!=s.end(); i++)
#define Min(a,b) a=min(a,b)
#define Max(a,b) a=max(a,b)
#define Sz(s) int((s).size())
#define All(s) (s).begin(),(s).end()
#define Fill(s,v) memset(s,v,sizeof(s))
#define pb push_back
#define mp make_pair
#define x first
#define y second
template<typename T> T Abs(T x) { return(x<0 ? -x : x); }
template<typename T> T Sqr(T x) { return(x*x); }
const int INF = (int)1e9;
const LD EPS = 1e-9;
const LD PI = acos(-1.0);
bool Read(int &x)
{
char c,r=0,n=0;
x=0;
for(;;)
{
c=getchar();
if ((c<0) && (!r))
return(0);
if ((c=='-') && (!r))
n=1;
else
if ((c>='0') && (c<='9'))
x=x*10+c-'0',r=1;
else
if (r)
break;
}
if (n)
x=-x;
return(1);
}
#define MOD 1000000007
#define LIM 1100000
int L[LIM],A[LIM],B[LIM];
int sz,treeM[LIM],treeC[LIM],lazy[LIM];
set<int> SL,SR;
void Prop(int i)
{
int v=lazy[i],j=i<<1,k=j+1;
lazy[i]=0;
treeM[i]+=v;
if (i<sz)
lazy[j]+=v,lazy[k]+=v;
}
void Update(int i,int r1,int r2,int a,int b,int v)
{
if (a>b)
return;
Prop(i);
if ((a<=r1) && (r2<=b))
{
lazy[i]+=v;
return;
}
int m=(r1+r2)>>1,j=i<<1,k=j+1;
if (a<=m)
Update(j,r1,m,a,b,v);
if (b>m)
Update(k,m+1,r2,a,b,v);
Prop(j),Prop(k);
treeM[i]=min(treeM[j],treeM[k]);
treeC[i]=0;
if (treeM[i]==treeM[j])
treeC[i]+=treeC[j];
if (treeM[i]==treeM[k])
treeC[i]+=treeC[k];
}
int Query(int i,int r1,int r2,int a,int b)
{
if (a>b)
return(0);
Prop(i);
if ((a<=r1) && (r2<=b))
return(treeM[i] ? 0 : treeC[i]);
int m=(r1+r2)>>1,j=i<<1,k=j+1,v=0;
if (a<=m)
v+=Query(j,r1,m,a,b);
if (b>m)
v+=Query(k,m+1,r2,a,b);
return(v);
}
void Go(int i,int d)
{
int a=A[i],b=B[i],p;
if (a>b)
swap(a,b);
p=b-a;
if (p%2)
{
// odd difference, key point must be outside [a, b-1]
a/=2,b/=2;
Update(1,0,sz-1,a,b-1,d);
return;
}
// even difference, key point must be inside [a, b-1]
if (d<0)
{
SL.erase(a);
SR.erase(b-2);
}
else
{
SL.insert(a);
SR.insert(b-2);
}
}
int main()
{
// vars
int T,t;
int N,M;
int i,j,a,b;
int ans;
// testcase loop
Read(T);
Fox1(t,T)
{
// input, init pairs
Read(N),Read(M);
Fill(A,-1);
Fox(i,N<<1)
{
Read(j),j--;
L[i]=j;
if (A[j]<0)
A[j]=i;
else
B[j]=i;
}
// init data structures
for(sz=1;sz<=N;sz<<=1);
Fill(lazy,0);
Fill(treeM,0);
Fox(i,sz)
treeC[sz+i]=1;
FoxR1(i,sz-1)
treeC[i]=treeC[i*2]+treeC[i*2+1];
SL.clear(),SR.clear();
// insert pairs
Fox(i,N)
Go(i,1);
// process updates
ans=0;
while (M--)
{
// input
Read(i),Read(j),i--,j--;
a=L[i],b=L[j];
if (a==b)
goto Skip;
// remove pairs
Go(a,-1),Go(b,-1);
// update pairs
swap(L[i],L[j]);
if (A[a]==i)
A[a]=j;
else
B[a]=j;
if (A[b]==j)
A[b]=i;
else
B[b]=i;
// re-insert pairs
Go(a,1),Go(b,1);
Skip:;
// compute current answer
if (SL.empty())
a=0,b=N*2;
else
{
a=*SL.rbegin();
b=*SR.begin();
}
a/=2;
b/=2;
ans=(ans+Query(1,0,sz-1,a,b))%MOD;
}
// output
printf("Case #%d: %d\n",t,ans);
}
return(0);
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869<p>Kit is a young, obedient Fox who excels in his studies, diligently practices his hunting skills, and is always friendly. His parents couldn't be prouder! That is, except for one problem... he refuses to eat his vegetables!</p>
<p>In an effort to improve Kit's diet, his parents have set up a little game for him to play. They've dug a series of 2<strong>N</strong> + 2 small holes in a row on the ground, and numbered them from 0 to 2<strong>N</strong> + 1, from first to last. They've left the first and last holes empty, and filled the remaining 2<strong>N</strong> holes with one healthy vegetable each! There are <strong>N</strong> different types of vegetables, numbered from 1 to <strong>N</strong>, and a vegetable of type <strong>V<sub>i</sub></strong> has initially been placed into each hole <em>i</em>, such that exactly 2 vegetables of each type were used in total.</p>
<p>Kit must start inside hole 0, and jump forwards from hole to hole until he reaches hole 2<strong>N</strong> + 1. When he's inside any given hole <em>i</em>, he's agile enough to jump to either hole <em>i</em> + 1 or directly to hole <em>i</em> + 2, but he can't jump any further than that at once. Whenever he lands in a hole containing a vegetable, the rules of the game mandate that he must eat it!</p>
<p>Kit has agreed to play this game (not that he has much choice in the matter), but there's only so much he can take. The vegetables are tolerable as long as there's variety. He doesn't care how many he has to eat in total, but he absolutely refuses to eat multiple vegetables of any single type over the course of the game. In other words, for each vegetable type, he must only enter <i>at most</i> one of the two holes containing that vegetable on his way from hole 0 to hole 2<strong>N</strong> + 1.</p>
<p>Kit will play the game once per day for a period of <strong>M</strong> days. For some fun variety, at the start of each day <em>i</em>, his parents will swap the contents of two different holes <strong>A<sub>i</sub></strong> and <strong>B<sub>i</sub></strong>. Then, Kit will play the game using the current configuration of vegetables. Once he's done, his parents will replace any vegetables which he had eaten with new vegetables of the same types, thus resetting the game to the state it was in before Kit played it.</p>
<p>Each day, there might be no acceptable way for Kit to complete the game, or there might be many different ways for him to do so. Two ways are considered different if at least one hole is visited in one but not the other. In order to make the game more exciting for himself, Kit would like to count up the number of different ways he could potentially complete it each day. However, that's a lot of big numbers to keep track of, so he's only interested in the sum of these <strong>M</strong> values when taken modulo 1,000,000,007. Please help him compute this overall sum!</p>
<h3>Input</h3>
<p>Input begins with an integer <strong>T</strong>, the number of different rows of holes.For each row of holes, there is first a line containing the space-separated integers <strong>N</strong> and <strong>M</strong>.There is next a line containing 2<strong>N</strong> space-separated integers, the <em>i</em>th of which is <strong>V<sub>i</sub></strong>.Then <strong>M</strong> lines follow, the <em>i</em>th of which contains the space-separated integers<strong>A<sub>i</sub></strong> and <strong>B<sub>i</sub></strong>
<h3>Output</h3>
<p>For the <em>i</em>th row of holes, print a line containing "Case #<strong>i</strong>: " followed by a single integer, the sum of the <strong>M</strong> days' answers modulo 1,000,000,007.</p>
<h3>Constraints</h3>
<p>1 ≤ <strong>T</strong> ≤ 30<br />1 ≤ <strong>N, M</strong> ≤ 500,000 <br />1 ≤ <strong>A<sub>i</sub></strong>, <strong>B<sub>i</sub></strong> ≤ 2<strong>N</strong> <br />1 ≤ <strong>V<sub>i</sub></strong> ≤ <strong>N</strong> <br />Both the sum of <strong>N</strong> values and the sum of <strong>M</strong> values across all <strong>T</strong> cases do not exceed 2,000,000.</p>
<h3>Explanation of Sample</h3>
<p>In the first case, both holes 1 and 2 will contain vegetables of type 1 even after their contents are swapped. There are then 2 different ways for Kit to validly reach hole 3 from hole 0, visiting either of these sequences of holes:</p>
<pre> 0 -> 1 -> 3 0 -> 2 -> 3</pre>
<p>He can't quite jump far enough to reach hole 3 directly from hole 0, nor can he visit both holes 1 and 2, as that would require eating multiple vegetables of a single type.</p>
<p>In the second case, there are 2 different ways for Kit to validly complete the game on the first day, and only 1 way on the second day. This results in a final answer of (2 + 1) modulo 1,000,000,007 = 3.</p>123version https://git-lfs.github.com/spec/v1oid sha256:41bc8a8a4fb7549fe5a83923f79a4e404a416be097b2fc1d2cca3af56eaff32csize 4325626012345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182Kit is a young, obedient Fox who excels in his studies, diligently practiceshis hunting skills, and is always friendly. His parents couldn't be prouder!That is, except for one problem... he refuses to eat his vegetables!
In an effort to improve Kit's diet, his parents have set up a little game forhim to play. They've dug a series of 2**N** \+ 2 small holes in a row on theground, and numbered them from 0 to 2**N** \+ 1, from first to last. They'veleft the first and last holes empty, and filled the remaining 2**N** holeswith one healthy vegetable each! There are **N** different types ofvegetables, numbered from 1 to **N**, and a vegetable of type **Vi** hasinitially been placed into each hole _i_, such that exactly 2 vegetables ofeach type were used in total.
Kit must start inside hole 0, and jump forwards from hole to hole until hereaches hole 2**N** \+ 1. When he's inside any given hole _i_, he's agileenough to jump to either hole _i_ \+ 1 or directly to hole _i_ \+ 2, but hecan't jump any further than that at once. Whenever he lands in a holecontaining a vegetable, the rules of the game mandate that he must eat it!
Kit has agreed to play this game (not that he has much choice in the matter),but there's only so much he can take. The vegetables are tolerable as long asthere's variety. He doesn't care how many he has to eat in total, but heabsolutely refuses to eat multiple vegetables of any single type over thecourse of the game. In other words, for each vegetable type, he must onlyenter _at most_ one of the two holes containing that vegetable on his way fromhole 0 to hole 2**N** \+ 1.
Kit will play the game once per day for a period of **M** days. For some funvariety, at the start of each day _i_, his parents will swap the contents oftwo different holes **Ai** and **Bi**. Then, Kit will play the game using thecurrent configuration of vegetables. Once he's done, his parents will replaceany vegetables which he had eaten with new vegetables of the same types, thusresetting the game to the state it was in before Kit played it.
Each day, there might be no acceptable way for Kit to complete the game, orthere might be many different ways for him to do so. Two ways are considereddifferent if at least one hole is visited in one but not the other. In orderto make the game more exciting for himself, Kit would like to count up thenumber of different ways he could potentially complete it each day. However,that's a lot of big numbers to keep track of, so he's only interested in thesum of these **M** values when taken modulo 1,000,000,007. Please help himcompute this overall sum!
### Input
Input begins with an integer **T**, the number of different rows of holes. Foreach row of holes, there is first a line containing the space-separatedintegers **N** and **M**. There is next a line containing 2**N** space-separated integers, the _i_th of which is **Vi**. Then **M** lines follow, the_i_th of which contains the space-separated integers **Ai** and **Bi**
### Output
For the _i_th row of holes, print a line containing "Case #**i**: " followedby a single integer, the sum of the **M** days' answers modulo 1,000,000,007.
### Constraints
1 ≤ **T** ≤ 30 1 ≤ **N, M** ≤ 500,000 1 ≤ **Ai**, **Bi** ≤ 2**N** 1 ≤ **Vi** ≤ **N** Both the sum of **N** values and the sum of **M** values across all **T**cases do not exceed 2,000,000.
### Explanation of Sample
In the first case, both holes 1 and 2 will contain vegetables of type 1 evenafter their contents are swapped. There are then 2 different ways for Kit tovalidly reach hole 3 from hole 0, visiting either of these sequences of holes:
0 -> 1 -> 3 0 -> 2 -> 3
He can't quite jump far enough to reach hole 3 directly from hole 0, nor canhe visit both holes 1 and 2, as that would require eating multiple vegetablesof a single type.
In the second case, there are 2 different ways for Kit to validly complete thegame on the first day, and only 1 way on the second day. This results in afinal answer of (2 + 1) modulo 1,000,000,007 = 3.
123456789101112131415161718192021222324252627282930Case #1: 2Case #2: 3Case #3: 5Case #4: 0Case #5: 17Case #6: 2Case #7: 1Case #8: 2Case #9: 7Case #10: 0Case #11: 134098873Case #12: 323526184Case #13: 518272039Case #14: 974275396Case #15: 175772460Case #16: 4477145Case #17: 3216403Case #18: 616019Case #19: 4331672Case #20: 3672991Case #21: 3497579Case #22: 4447010Case #23: 2166340Case #24: 1026410Case #25: 861565Case #26: 756Case #27: 112Case #28: 771Case #29: 104Case #30: 784123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247// Hacker Cup 2017
// Final Round
// Fox Moles
// Jacob Plachta
#include <algorithm>
#include <functional>
#include <numeric>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <cassert>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <sstream>
using namespace std;
#define LL long long
#define LD long double
#define PR pair<int,int>
#define Fox(i,n) for (i=0; i<n; i++)
#define Fox1(i,n) for (i=1; i<=n; i++)
#define FoxI(i,a,b) for (i=a; i<=b; i++)
#define FoxR(i,n) for (i=(n)-1; i>=0; i--)
#define FoxR1(i,n) for (i=n; i>0; i--)
#define FoxRI(i,a,b) for (i=b; i>=a; i--)
#define Foxen(i,s) for (i=s.begin(); i!=s.end(); i++)
#define Min(a,b) a=min(a,b)
#define Max(a,b) a=max(a,b)
#define Sz(s) int((s).size())
#define All(s) (s).begin(),(s).end()
#define Fill(s,v) memset(s,v,sizeof(s))
#define pb push_back
#define mp make_pair
#define x first
#define y second
template<typename T> T Abs(T x) { return(x<0 ? -x : x); }
template<typename T> T Sqr(T x) { return(x*x); }
const int INF = (int)1e9;
const LD EPS = 1e-12;
const LD PI = acos(-1.0);
bool Read(int &x)
{
char c,r=0,n=0;
x=0;
for(;;)
{
c=getchar();
if ((c<0) && (!r))
return(0);
if ((c=='-') && (!r))
n=1;
else
if ((c>='0') && (c<='9'))
x=x*10+c-'0',r=1;
else
if (r)
break;
}
if (n)
x=-x;
return(1);
}
#define LIM 900009
int K,A,B;
map<int,int> M;
vector<int> con[LIM],con2[LIM];
bool col0[LIM];
int col[LIM],ind[LIM],P1[LIM],P2[LIM],dist[LIM];
int Make(int i)
{
if (M.count(i))
return(M[i]);
return(M[i]=K++);
}
bool DFS(int i,int c)
{
// conflict?
if ((col0[i]) && (c) || (col[i]>=0) && (c!=col[i]))
return(0);
// already coloured?
if (col[i]>=0)
return(1);
// colour node and its neighbours
col[i]=c;
int j;
Fox(j,Sz(con[i]))
if (!DFS(con[i][j],1-c))
return(0);
return(1);
}
bool MatchBFS()
{
int i,a,b,a2;
queue<int> Q;
Fill(dist,60);
Fox(a,A)
if (P1[a]<0)
dist[a]=0,Q.push(a);
while (!Q.empty())
{
a=Q.front(),Q.pop();
if (dist[a]<dist[A])
Fox(i,Sz(con2[a]))
{
b=con2[a][i];
a2=P2[b];
if (dist[a2]>=INF)
dist[a2]=dist[a]+1,Q.push(a2);
}
}
return(dist[A]<INF);
}
bool MatchDFS(int a)
{
if (a==A)
return(1);
int i,b,a2;
Fox(i,Sz(con2[a]))
{
b=con2[a][i];
a2=P2[b];
if ((dist[a2]==dist[a]+1) && (MatchDFS(a2)))
{
P1[a]=b;
P2[b]=a;
return(1);
}
}
dist[a]=INF;
return(0);
}
int MaxMatching()
{
int a,b,m=0;
Fill(P1,-1);
Fox(b,B)
P2[b]=A;
while (MatchBFS())
{
Fox(a,A)
if ((P1[a]<0) && (MatchDFS(a)))
m++;
}
return(m);
}
int main()
{
// vars
int T,t;
int N=0;
int i,j,a,b,p,r,z,ans;
// testcase loop
Read(T);
Fox1(t,T)
{
// init
Fox(i,K)
con[i].clear();
Fox(i,A)
con2[i].clear();
K=0;
M.clear();
Fill(col0,0);
Fill(col,-1);
Fill(ind,-1);
Fill(P1,-1);
Fill(P2,-1);
// input
Read(N);
while (N--)
{
Read(p),Read(r);
i=Make(p),a=Make(p-r),b=Make(p+r);
col0[i]=1;
con[a].pb(b);
con[b].pb(a);
}
// attempt to 2-color the graph (initially just from forced nodes)
Fox(z,2)
Fox(i,K)
if (col[i]<0)
{
if ((!z) && (!col0[i]))
continue;
if (!DFS(i,0))
{
ans=-1;
goto Done;
}
}
// construct the bipartite graph, ignoring forced nodes
A=B=0;
Fox(i,K)
if (!col0[i])
{
Fox(j,Sz(con[i]))
if (col0[con[i][j]])
goto Skip;
if (!col[i])
ind[i]=A++;
else
ind[i]=B++;
Skip:;
}
Fox(i,K)
if ((ind[i]>=0) && (!col[i]))
{
a=ind[i];
Fox(j,Sz(con[i]))
{
b=ind[con[i][j]];
if (b>=0)
con2[a].pb(b);
}
}
ans=A+B-MaxMatching()+1;
// output
Done:;
printf("Case #%d: %d\n",t,ans);
}
return(0);
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788<p>It's dinner time!A group of <strong>N</strong> Foxen are standing silently in a field, which can be represented as an infinite number line,patiently waiting for their meals to make an appearance.The <em>i</em>th Fox is standing at position <strong>P<sub>i</sub></strong>,with no two Foxen standing at the same position.There's also one hole in the ground at each each integral position on the number line.Each of these holes is the entrance to a mole's den, and the Foxen know that some of these delicious critters arebound to show up sooner or later!</p>
<p>A little-known fact about Foxen is that, in addition to having an acute array of regular senses,they possess a SONAR-like ability to emit imperceptible sound waves and use them to discern objects at great distances.The <em>i</em>th Fox has tuned their wavelength to a distance of <strong>R<sub>i</sub></strong>,allowing them to only detect moles which emerge from holes at a distance of exactly <strong>R<sub>i</sub></strong> away from them(that is, at either position <strong>P<sub>i</sub></strong> - <strong>R<sub>i</sub></strong> or<strong>P<sub>i</sub></strong> + <strong>R<sub>i</sub></strong>).
</p>
<p>All of a sudden, some number of moles have just popped up from various holes all at once! No mole popped up at any Fox's position, no two moles popped up from the same hole, andevery mole was detected by at least one Fox.Furthermore, each Fox <em>i</em> has determined that there's <i>exactly</i> 1 moleat a distance of <strong>R<sub>i</sub></strong> away from it (as opposed to there being either 0 or 2 such moles).</p>
<p>Following this initial event, there's been quite some commotion.Some moles may have retreated back underground, and some new moles may have emerged, all in any order.At every point in time, the set of moles on the surface is subject to all of the same restrictions as before, with one difference:Each Fox <em>i</em> continues to be sure that <i>at least</i> 1 mole is still presentat a distance of <strong>R<sub>i</sub></strong> away from it, but can no longer determine whether or notthere are perhaps now 2 such moles instead.</p>
<p>After some time of this, the Foxen have decided that they're ready to pounce and "invite" some of the molescurrently on the surface over for dinner.Unfortunately, they've started to become rather overwhelmed with trying to keep track of which molesmay be on the surface, or even roughly how many of them there might be.Assuming that the Foxen's initial observations were correct, and that some unknown amount of time has since gone bywith moles surfacing or departing, please help the Foxen determine the number of different quantities of moles whichcould possibly have ended up on the surface.</p>
<p>If it's impossible for their set of initial observations to have been accurate in the first place, output -1 instead.</p>
<h3>Input</h3>
<p>Input begins with an integer <strong>T</strong>, the number of different fields.For each field, there is first a line containing the integer <strong>N</strong>.Then <strong>N</strong> lines follow, the <em>i</em>th of which contains the space-separated integers<strong>P<sub>i</sub></strong> and <strong>R<sub>i</sub></strong>.</p>
<h3>Output</h3>
<p>For the <em>i</em>th field, print a line containing "Case #<strong>i</strong>: " followed by a single integer, the number of different quantities of moles which could possibly end up on the surface at any point, or -1 if the Foxen's initial observations must have been inaccurate.</p>
<h3>Constraints</h3>
<p>1 ≤ <strong>T</strong> ≤ 30<br />1 ≤ <strong>N</strong> ≤ 5,000 <br />0 ≤ <strong>P<sub>i</sub></strong> ≤ 1,000,000,000 <br />1 ≤ <strong>R<sub>i</sub></strong> ≤ 1,000,000,000 <br /></p>
<h3>Explanation of Sample</h3>
<p>In the first case, it's possible for there to eventually be 1 mole (at either position -1 or 1), or 2 moles (at both positions -1 and 1). There can't be 0 moles due to the restriction that the Fox must detect at least 1 of them, and there can't be more than 2 moles as they'd have to be at positions which the Fox is unable to detect.</p>
<p>In the third case, it's impossible for a set of moles to have initially popped up such that each Fox would have detected <em>exactly</em> one of them.</p>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475It's dinner time! A group of **N** Foxen are standing silently in a field,which can be represented as an infinite number line, patiently waiting fortheir meals to make an appearance. The _i_th Fox is standing at position**Pi**, with no two Foxen standing at the same position. There's also one holein the ground at each each integral position on the number line. Each of theseholes is the entrance to a mole's den, and the Foxen know that some of thesedelicious critters are bound to show up sooner or later!
A little-known fact about Foxen is that, in addition to having an acute arrayof regular senses, they possess a SONAR-like ability to emit imperceptiblesound waves and use them to discern objects at great distances. The _i_th Foxhas tuned their wavelength to a distance of **Ri**, allowing them to onlydetect moles which emerge from holes at a distance of exactly **Ri** away fromthem (that is, at either position **Pi** \- **Ri** or **Pi** \+ **Ri**).
All of a sudden, some number of moles have just popped up from various holesall at once! No mole popped up at any Fox's position, no two moles popped upfrom the same hole, and every mole was detected by at least one Fox.Furthermore, each Fox _i_ has determined that there's _exactly_ 1 mole at adistance of **Ri** away from it (as opposed to there being either 0 or 2 suchmoles).
Following this initial event, there's been quite some commotion. Some molesmay have retreated back underground, and some new moles may have emerged, allin any order. At every point in time, the set of moles on the surface issubject to all of the same restrictions as before, with one difference: EachFox _i_ continues to be sure that _at least_ 1 mole is still present at adistance of **Ri** away from it, but can no longer determine whether or notthere are perhaps now 2 such moles instead.
After some time of this, the Foxen have decided that they're ready to pounceand "invite" some of the moles currently on the surface over for dinner.Unfortunately, they've started to become rather overwhelmed with trying tokeep track of which moles may be on the surface, or even roughly how many ofthem there might be. Assuming that the Foxen's initial observations werecorrect, and that some unknown amount of time has since gone by with molessurfacing or departing, please help the Foxen determine the number ofdifferent quantities of moles which could possibly have ended up on thesurface.
If it's impossible for their set of initial observations to have been accuratein the first place, output -1 instead.
### Input
Input begins with an integer **T**, the number of different fields. For eachfield, there is first a line containing the integer **N**. Then **N** linesfollow, the _i_th of which contains the space-separated integers **Pi** and**Ri**.
### Output
For the _i_th field, print a line containing "Case #**i**: " followed by asingle integer, the number of different quantities of moles which couldpossibly end up on the surface at any point, or -1 if the Foxen's initialobservations must have been inaccurate.
### Constraints
1 ≤ **T** ≤ 30 1 ≤ **N** ≤ 5,000 0 ≤ **Pi** ≤ 1,000,000,000 1 ≤ **Ri** ≤ 1,000,000,000
### Explanation of Sample
In the first case, it's possible for there to eventually be 1 mole (at eitherposition -1 or 1), or 2 moles (at both positions -1 and 1). There can't be 0moles due to the restriction that the Fox must detect at least 1 of them, andthere can't be more than 2 moles as they'd have to be at positions which theFox is unable to detect.
In the third case, it's impossible for a set of moles to have initially poppedup such that each Fox would have detected _exactly_ one of them.
123456789101112131415161718192021222324252627282930Case #1: 2Case #2: 3Case #3: -1Case #4: 4Case #5: 10Case #6: 2Case #7: 5Case #8: 1Case #9: 2Case #10: -1Case #11: 1363Case #12: 1493Case #13: 68Case #14: 123Case #15: 417Case #16: 1215Case #17: -1Case #18: 79Case #19: 133Case #20: 134Case #21: 964Case #22: 38Case #23: 1489Case #24: -1Case #25: 345Case #26: 113Case #27: 1026Case #28: 795Case #29: 659Case #30: 1076123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123// Hacker Cup 2017
// Final Round
// Fox Patrols
// Jacob Plachta
#include <algorithm>
#include <functional>
#include <numeric>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <cassert>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <sstream>
using namespace std;
#define LL long long
#define LD long double
#define PR pair<int,int>
#define Fox(i,n) for (i=0; i<n; i++)
#define Fox1(i,n) for (i=1; i<=n; i++)
#define FoxI(i,a,b) for (i=a; i<=b; i++)
#define FoxR(i,n) for (i=(n)-1; i>=0; i--)
#define FoxR1(i,n) for (i=n; i>0; i--)
#define FoxRI(i,a,b) for (i=b; i>=a; i--)
#define Foxen(i,s) for (i=s.begin(); i!=s.end(); i++)
#define Min(a,b) a=min(a,b)
#define Max(a,b) a=max(a,b)
#define Sz(s) int((s).size())
#define All(s) (s).begin(),(s).end()
#define Fill(s,v) memset(s,v,sizeof(s))
#define pb push_back
#define mp make_pair
#define x first
#define y second
template<typename T> T Abs(T x) { return(x<0 ? -x : x); }
template<typename T> T Sqr(T x) { return(x*x); }
const int INF = (int)1e9;
const LD EPS = 1e-12;
const LD PI = acos(-1.0);
bool Read(int &x)
{
char c,r=0,n=0;
x=0;
for(;;)
{
c=getchar();
if ((c<0) && (!r))
return(0);
if ((c=='-') && (!r))
n=1;
else
if ((c>='0') && (c<='9'))
x=x*10+c-'0',r=1;
else
if (r)
break;
}
if (n)
x=-x;
return(1);
}
#define MOD 1000000007
// a^b
int pw(LL a,int b)
{
int v=1;
while (b)
{
if (b&1)
v=v*a%MOD;
a=a*a%MOD;
b>>=1;
}
return(v);
}
// number of skylines of length n with max height h
LL cnt(int n,int h)
{
return((pw(h,n)-pw(h-1,n)+MOD)%MOD);
}
int main()
{
// vars
int T,t;
int N,M,H;
int h,ans;
// testcase loop
Read(T);
Fox1(t,T)
{
// input
Read(N),Read(M),Read(H);
// consider all possible max tree heights
ans=0;
Fox1(h,H)
ans=(ans+cnt(N,h)*cnt(M,h))%MOD;
// output
printf("Case #%d: %d\n",t,ans);
}
return(0);
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182<p>A certain well-hidden valley is home to a thriving population of mysterious creatures — Foxen!However, keeping the valley safe from outsiders (such as humans) is a necessity.To that end, a group of Foxen have been sent out to patrol the border.</p>
<p>On their patrol route, the Foxen know that they're going to pass by an interesting, rectangular forest.When viewed from above, the forest can be modeled as a grid of cellswith <strong>R</strong> rows and <strong>C</strong> columns. The rows are numbered from 1 to <strong>R</strong> from North to South, while the column are numbered from 1 to <strong>C</strong> from West to East.One tree is growing in the center of each cell, and each tree's height (in metres) is some positive integer no larger than <strong>H</strong>. </p>
<p>If the Foxen were to look at the forest from the North side, all of the trees in any given column of cells would obscure each other and blend together. In fact, the Foxen would really only be able make out the overall shape of the forest's "skyline" when viewed from that direction. This Northern skyline can be expressed as a sequence of <strong>C</strong> positive integers, with the <em>i</em>th one being the largest of the <strong>R</strong> tree heights in the <em>i</em>th column.</p>
<p>Similarly, if they were to look at the forest from the West side, they would only be able to make out the shape of its skyline from that direction. This Western skyline is a sequence of <strong>R</strong> positive integers, with the <em>i</em>th one being the largest of the <strong>C</strong> tree heights in the <em>i</em>th row.</p>
<p>On their way to the forest, the Foxen find themselves wondering about what it might look like. They've done their research and are aware of its dimensions <strong>R</strong> and <strong>C</strong>, as well as the maximum possible height of its trees <strong>H</strong>, but they don't know the actual heights of any of its trees. They'd like to determine how many different, distinct-looking forests they might end up finding. A forest is a set of heights for all <strong>R</strong>x<strong>C</strong> trees, and two forests are considered to be distinct-looking from one another if their Northern skyline sequences differ and/or their Western skyline sequences differ. </p>
<p>Please help the Foxen determine the number of possible different, distinct-looking forests! As this quantity may be quite large, they're only interested in its value when taken modulo 1,000,000,007.</p>
<h3>Input</h3>
<p>Input begins with an integer <strong>T</strong>, the number of different forests visited by the Foxen.For each forest, there is a single line containing the three space-separated integers <strong>R</strong>, <strong>C</strong>, and <strong>H</strong>.</p>
<h3>Output</h3>
<p>For the <em>i</em>th forest, print a line containing "Case #<strong>i</strong>: " followed by the number of possible different, distinct-looking forests modulo 1,000,000,007.</p>
<h3>Constraints</h3>
<p>1 ≤ <strong>T</strong> ≤ 30 <br />1 ≤ <strong>R</strong>, <strong>C</strong>, <strong>H</strong> ≤ 500,000 <br /></p>
<h3>Explanation of Sample</h3>
<p>In the first case, there are 10 possible different, distinct-looking forests which consist of a 2x2 grid of trees, with each tree being either 1m or 2m tall. For example, the following 2 forests look different (even though their Western skylines are equal, their Northern skylines differ), so both should be counted:</p>
<pre> 1 2 2 1 1 1 1 1</pre> <p>On the other hand, the following 2 forests look identical to one another from both the North and the West, so only one of them should be counted:</p>
<pre> 1 2 2 2 2 1 2 1</pre>12345678910111213141516171819202122232425262728293031302 2 23 3 310 10 210 10 312345 54321 987651 1 11 1 5000001 500000 11 500000 500000500000 1 1500000 1 500000500000 500000 1500000 500000 500000320813 317748 38903138867 351451 187697364035 163376 439098122612 43988 469986226214 129928 408977284198 155331 429992484558 292080 226183171737 440766 26340254725 193588 49259836190 169975 16038641408 136075 416935192383 203512 25957860442 2849 34087373965 441433 45490138969 349737 156766216121 452029 88461162647 304920 107641123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172A certain well-hidden valley is home to a thriving population of mysteriouscreatures — Foxen! However, keeping the valley safe from outsiders (such ashumans) is a necessity. To that end, a group of Foxen have been sent out topatrol the border.
On their patrol route, the Foxen know that they're going to pass by aninteresting, rectangular forest. When viewed from above, the forest can bemodeled as a grid of cells with **R** rows and **C** columns. The rows arenumbered from 1 to **R** from North to South, while the column are numberedfrom 1 to **C** from West to East. One tree is growing in the center of eachcell, and each tree's height (in metres) is some positive integer no largerthan **H**.
If the Foxen were to look at the forest from the North side, all of the treesin any given column of cells would obscure each other and blend together. Infact, the Foxen would really only be able make out the overall shape of theforest's "skyline" when viewed from that direction. This Northern skyline canbe expressed as a sequence of **C** positive integers, with the _i_th onebeing the largest of the **R** tree heights in the _i_th column.
Similarly, if they were to look at the forest from the West side, they wouldonly be able to make out the shape of its skyline from that direction. ThisWestern skyline is a sequence of **R** positive integers, with the _i_th onebeing the largest of the **C** tree heights in the _i_th row.
On their way to the forest, the Foxen find themselves wondering about what itmight look like. They've done their research and are aware of its dimensions**R** and **C**, as well as the maximum possible height of its trees **H**,but they don't know the actual heights of any of its trees. They'd like todetermine how many different, distinct-looking forests they might end upfinding. A forest is a set of heights for all **R**x**C** trees, and twoforests are considered to be distinct-looking from one another if theirNorthern skyline sequences differ and/or their Western skyline sequencesdiffer.
Please help the Foxen determine the number of possible different, distinct-looking forests! As this quantity may be quite large, they're only interestedin its value when taken modulo 1,000,000,007.
### Input
Input begins with an integer **T**, the number of different forests visited bythe Foxen. For each forest, there is a single line containing the three space-separated integers **R**, **C**, and **H**.
### Output
For the _i_th forest, print a line containing "Case #**i**: " followed by thenumber of possible different, distinct-looking forests modulo 1,000,000,007.
### Constraints
1 ≤ **T** ≤ 30 1 ≤ **R**, **C**, **H** ≤ 500,000
### Explanation of Sample
In the first case, there are 10 possible different, distinct-looking forestswhich consist of a 2x2 grid of trees, with each tree being either 1m or 2mtall. For example, the following 2 forests look different (even though theirWestern skylines are equal, their Northern skylines differ), so both should becounted:
1 2 2 1 1 1 1 1
On the other hand, the following 2 forests look identical to one another fromboth the North and the West, so only one of them should be counted:
1 2 2 2 2 1 2 1
123456789101112131415161718192021222324252627282930Case #1: 10Case #2: 411Case #3: 1046530Case #4: 367947134Case #5: 151251795Case #6: 1Case #7: 500000Case #8: 1Case #9: 640164345Case #10: 1Case #11: 640164345Case #12: 1Case #13: 784439684Case #14: 628695691Case #15: 473900163Case #16: 161834349Case #17: 102371132Case #18: 83427294Case #19: 535513662Case #20: 527573954Case #21: 223154519Case #22: 426038426Case #23: 86290130Case #24: 856759245Case #25: 511958015Case #26: 672344838Case #27: 350475264Case #28: 968392936Case #29: 340846376Case #30: 730119034123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202// Hacker Cup 2017
// Final Round
// Fox Poles
// Jacob Plachta
#include <algorithm>
#include <functional>
#include <numeric>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <cassert>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <sstream>
using namespace std;
#define LL long long
#define LD long double
#define PR pair<int,int>
#define Fox(i,n) for (i=0; i<n; i++)
#define Fox1(i,n) for (i=1; i<=n; i++)
#define FoxI(i,a,b) for (i=a; i<=b; i++)
#define FoxR(i,n) for (i=(n)-1; i>=0; i--)
#define FoxR1(i,n) for (i=n; i>0; i--)
#define FoxRI(i,a,b) for (i=b; i>=a; i--)
#define Foxen(i,s) for (i=s.begin(); i!=s.end(); i++)
#define Min(a,b) a=min(a,b)
#define Max(a,b) a=max(a,b)
#define Sz(s) int((s).size())
#define All(s) (s).begin(),(s).end()
#define Fill(s,v) memset(s,v,sizeof(s))
#define pb push_back
#define mp make_pair
#define x first
#define y second
template<typename T> T Abs(T x) { return(x<0 ? -x : x); }
template<typename T> T Sqr(T x) { return(x*x); }
const int INF = (int)1e9;
const LD EPS = 1e-10;
const LD PI = acos(-1.0);
bool Read(int &x)
{
char c,r=0,n=0;
x=0;
for(;;)
{
c=getchar();
if ((c<0) && (!r))
return(0);
if ((c=='-') && (!r))
n=1;
else
if ((c>='0') && (c<='9'))
x=x*10+c-'0',r=1;
else
if (r)
break;
}
if (n)
x=-x;
return(1);
}
#define LIM 800001
pair<int,LD> O[LIM],P[LIM];
LD mx[LIM];
vector<int> ch[LIM];
int ss,st[LIM];
LD Calc(LD h,LD a1,LD a2)
{
return(-h*(log(cos(a2))-log(cos(a1))));
}
int main()
{
// vars
int T,t;
int N;
bool D[2];
LD A[2];
int i,j,c,p,w,z;
double v;
LD a,a1,a2,tot,ans[2];
// testcase loop
Read(T);
Fox1(t,T)
{
// input
Read(N);
Fox(i,2)
{
Read(j);
D[i]=int(j<0);
A[i]=j*PI/180;
}
Fox(i,N)
{
scanf("%d%lf",&O[i].x,&v);
O[i].y=v;
}
// consider each direction
Fox(z,2)
{
// reverse poles horizontally if necessary
memcpy(P,O,sizeof(P));
if (D[z])
Fox(i,N)
P[i].x=-P[i].x;
// sort poles left-to-right
sort(P,P+N);
// init
Fox(i,N+1)
ch[i].clear();
// consider poles left-to-right, constructing convex hull of coverage
ss=0;
Fox(i,N)
{
// find this pole's parent, if any
while (ss>0)
{
j=st[ss-1];
a=atan2(P[i].x-P[j].x,P[j].y-P[i].y);
if (a<mx[j]-EPS)
break;
ss--;
}
if (!ss)
{
mx[i]=Abs(A[z]);
ch[N].pb(i);
}
else
{
mx[i]=a;
ch[j].pb(i);
}
st[ss++]=i;
}
// augment tree
Fox(j,Sz(ch[N])-1)
ch[ch[N][j]].pb(ch[N][j+1]);
Fox(i,N)
Fox(j,Sz(ch[i])-1)
ch[ch[i][j]].pb(ch[i][j+1]);
// consider each left pole
ans[z]=0;
Fox(i,N)
{
a=0;
Fox(c,Sz(ch[i]))
{
j=ch[i][c];
a1=max(a,atan2(P[j].x-P[i].x,P[i].y));
a2=atan2(P[j].x-P[i].x,P[i].y-P[j].y);
// partial shadow until bottom
if (a1>mx[i]-EPS)
break;
ans[z]+=Calc(P[i].y,a,a1);
// full shadow until top
w=P[j].x-P[i].x;
if (a2>mx[i]-EPS)
{
ans[z]+=w*(mx[i]-a1);
goto Done;
}
ans[z]+=w*(a2-a1);
a=a2;
}
ans[z]+=Calc(P[i].y,a,mx[i]);
Done:;
}
}
// compute answer
if (D[0]==D[1])
tot=Abs(ans[0]-ans[1]);
else
tot=ans[0]+ans[1];
tot/=A[1]-A[0];
// output
printf("Case #%d: %.9lf\n",t,(double)tot);
}
return(0);
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455<p>While taking a walk through the woods, a group of Foxen have come upon a curious sight — a row of <strong>N</strong> wooden poles sticking straight up out of the ground! Who placed them there, and why? The Foxen have no clue.</p>
<p>Looking at the poles from the side, they can be modeled as vertical line segments rising upwards from a number line (which represents the ground), with the <em>i</em>th pole at distinct integral position <strong>P<sub>i</sub></strong> and having a real-valued height of <strong>H<sub>i</sub></strong>.</p>
<p>One of the Foxen, Ozy, is fascinated by the shadows being cast on the ground by the poles. The sun is shining down on the poles from some point very high up in the sky, resulting in infinitely many rays of light descending towards the number line at all possible positions along it, but all travelling in some uniform direction. Each ray of light stops travelling as soon as it comes into contact with either a pole or the ground. Any point on the ground which is incapable of being reached by rays of light (because they would get blocked by at least one pole before reaching that point) is considered to be covered in shadows.</p>
<p>The sunlight's direction can be described by a real value <em>a</em>, with absolute value no larger than 80, where <em>a</em> is the signed angle difference (in degrees) between the rays' direction and a vector pointing directly downwards. As an example, let's imagine that there's a single pole at position 50 and with a height of 100. If <em>a</em> = 45, then sunlight is shining diagonally down and to the right, meaning that the pole obstructs rays of light from being able to reach any points on the ground in the interval [50, 150], effectively casting a shadow with length 100 to the right. If <em>a</em> = -45, then sunlight is shining diagonally down and to the left, causing the pole to cast a shadow with 100 to the left instead (over the interval [-50, 50]). If <em>a</em> = 0, then sunlight is shining directly downwards onto the ground, resulting in the pole not casting any shadow.</p>
<p>Ozy is planning on returning by himself tomorrow in order to observe the poles again, but he doesn't know at what time of day he'll be able to make the trip. He does at least have it narrowed down to being within some interval of time, during which he knows that the sunlight's direction <em>a</em> will range from <strong>A</strong> and <strong>B</strong>, inclusive. Given that the sunlight's direction <em>a</em> will be a real number drawn uniformly at random from the interval [<strong>A</strong>, <strong>B</strong>] when Ozy visits the poles tomorrow, please help him predict the expected total length of ground which will be covered in shadows at that time.</p>
<h3>Input</h3>
<p>Input begins with an integer <strong>T</strong>, the number of different sets of poles.For each set of poles, there is first a line containing the space-separated integers <strong>N</strong>, <strong>A</strong>, and <strong>B</strong>.Then <strong>N</strong> lines follow, the <em>i</em>th of which contains the integer<strong>P<sub>i</sub></strong> and the real number <strong>H<sub>i</sub></strong> separated by a space.The poles' heights are given with at most 4 digits after the decimal point.</p>
<h3>Output</h3>
<p>For the <em>i</em>th set of poles, print a line containing "Case #<strong>i</strong>: " followed by a single real number, the expected length of ground which will be covered in shadows.Your output should have at most 10<sup>-6</sup> absolute or relative error.</p>
<h3>Constraints</h3>
<p>1 ≤ <strong>T</strong> ≤ 30<br />1 ≤ <strong>N</strong> ≤ 500,000 <br />-80 ≤ <strong>A</strong> < <strong>B</strong> ≤ 80 <br />0 ≤ <strong>P<sub>i</sub></strong> ≤ 1,000,000,000 <br />1 ≤ <strong>H<sub>i</sub></strong> ≤ 1,000,000 <br />The sum of <strong>N</strong> values across all <strong>T</strong> cases does not exceed 2,000,000.</p>
<h3>Explanation of Sample</h3>
<p>In the first case, the sunlight's direction <em>a</em> is drawn uniformly at random from the interval [44, 46]. As described above, the length of ground covered in shadows when <em>a</em> = 45 is exactly 100. When <em>a</em> = 44, the shadow's length is ~96.57, and when <em>a</em> = 46, its length is ~103.55. However, note that its expected length for this distribution of possible <em>a</em> values is not equal to the average of those sample lengths.</p>123version https://git-lfs.github.com/spec/v1oid sha256:e9d2250a37156e0f4c67b9967987999557727d4f04df2b1b75f0eb6addfecd5dsize 2391207812345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273While taking a walk through the woods, a group of Foxen have come upon acurious sight — a row of **N** wooden poles sticking straight up out of theground! Who placed them there, and why? The Foxen have no clue.
Looking at the poles from the side, they can be modeled as vertical linesegments rising upwards from a number line (which represents the ground), withthe _i_th pole at distinct integral position **Pi** and having a real-valuedheight of **Hi**.
One of the Foxen, Ozy, is fascinated by the shadows being cast on the groundby the poles. The sun is shining down on the poles from some point very highup in the sky, resulting in infinitely many rays of light descending towardsthe number line at all possible positions along it, but all travelling in someuniform direction. Each ray of light stops travelling as soon as it comes intocontact with either a pole or the ground. Any point on the ground which isincapable of being reached by rays of light (because they would get blocked byat least one pole before reaching that point) is considered to be covered inshadows.
The sunlight's direction can be described by a real value _a_, with absolutevalue no larger than 80, where _a_ is the signed angle difference (in degrees)between the rays' direction and a vector pointing directly downwards. As anexample, let's imagine that there's a single pole at position 50 and with aheight of 100. If _a_ = 45, then sunlight is shining diagonally down and tothe right, meaning that the pole obstructs rays of light from being able toreach any points on the ground in the interval [50, 150], effectively castinga shadow with length 100 to the right. If _a_ = -45, then sunlight is shiningdiagonally down and to the left, causing the pole to cast a shadow with 100 tothe left instead (over the interval [-50, 50]). If _a_ = 0, then sunlight isshining directly downwards onto the ground, resulting in the pole not castingany shadow.
Ozy is planning on returning by himself tomorrow in order to observe the polesagain, but he doesn't know at what time of day he'll be able to make the trip.He does at least have it narrowed down to being within some interval of time,during which he knows that the sunlight's direction _a_ will range from **A**and **B**, inclusive. Given that the sunlight's direction _a_ will be a realnumber drawn uniformly at random from the interval [**A**, **B**] when Ozyvisits the poles tomorrow, please help him predict the expected total lengthof ground which will be covered in shadows at that time.
### Input
Input begins with an integer **T**, the number of different sets of poles. Foreach set of poles, there is first a line containing the space-separatedintegers **N**, **A**, and **B**. Then **N** lines follow, the _i_th of whichcontains the integer **Pi** and the real number **Hi** separated by a space.The poles' heights are given with at most 4 digits after the decimal point.
### Output
For the _i_th set of poles, print a line containing "Case #**i**: " followedby a single real number, the expected length of ground which will be coveredin shadows. Your output should have at most 10-6 absolute or relative error.
### Constraints
1 ≤ **T** ≤ 30 1 ≤ **N** ≤ 500,000 -80 ≤ **A** < **B** ≤ 80 0 ≤ **Pi** ≤ 1,000,000,000 1 ≤ **Hi** ≤ 1,000,000 The sum of **N** values across all **T** cases does not exceed 2,000,000.
### Explanation of Sample
In the first case, the sunlight's direction _a_ is drawn uniformly at randomfrom the interval [44, 46]. As described above, the length of ground coveredin shadows when _a_ = 45 is exactly 100. When _a_ = 44, the shadow's length is~96.57, and when _a_ = 46, its length is ~103.55. However, note that itsexpected length for this distribution of possible _a_ values is not equal tothe average of those sample lengths.
123456789101112131415161718192021222324252627282930Case #1: 100.020314016Case #2: 199.157629122Case #3: 5.731972014Case #4: 29594.141688738Case #5: 155.088749996Case #6: 540.964700227Case #7: 126.382789019Case #8: 1.586234811Case #9: 540.964700227Case #10: 127.947392195Case #11: 1461095.416128784Case #12: 1432754.504519450Case #13: 1628184.422929403Case #14: 177448.735071926Case #15: 2504.658183565Case #16: 6199.844885954Case #17: 1661.458735424Case #18: 1342.586511189Case #19: 2426.361263193Case #20: 3884.965136178Case #21: 1772.164136795Case #22: 992.500138918Case #23: 5276.187756659Case #24: 142985.603513587Case #25: 1024.929137712Case #26: 1114.779671090Case #27: 4987.183650761Case #28: 34755.461192247Case #29: 2071.210292890Case #30: 1734.160405930123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170// Hacker Cup 2017
// Final Round
// Fox Strolls
// Jacob Plachta
#include <algorithm>
#include <functional>
#include <numeric>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <cassert>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <sstream>
using namespace std;
#define LL long long
#define LD long double
#define PR pair<int,int>
#define Fox(i,n) for (i=0; i<n; i++)
#define Fox1(i,n) for (i=1; i<=n; i++)
#define FoxI(i,a,b) for (i=a; i<=b; i++)
#define FoxR(i,n) for (i=(n)-1; i>=0; i--)
#define FoxR1(i,n) for (i=n; i>0; i--)
#define FoxRI(i,a,b) for (i=b; i>=a; i--)
#define Foxen(i,s) for (i=s.begin(); i!=s.end(); i++)
#define Min(a,b) a=min(a,b)
#define Max(a,b) a=max(a,b)
#define Sz(s) int((s).size())
#define All(s) (s).begin(),(s).end()
#define Fill(s,v) memset(s,v,sizeof(s))
#define pb push_back
#define mp make_pair
#define x first
#define y second
template<typename T> T Abs(T x) { return(x<0 ? -x : x); }
template<typename T> T Sqr(T x) { return(x*x); }
const int INF = (int)1e9;
const LD EPS = 1e-12;
const LD PI = acos(-1.0);
bool Read(int &x)
{
char c,r=0,n=0;
x=0;
for(;;)
{
c=GETCHAR();
if ((c<0) && (!r))
return(0);
if ((c=='-') && (!r))
n=1;
else
if ((c>='0') && (c<='9'))
x=x*10+c-'0',r=1;
else
if (r)
break;
}
if (n)
x=-x;
return(1);
}
#define LIM 500000
int main()
{
// vars
int T,t;
int N;
int i,j,a,b,h;
LL ans1,ans2;
static int H[LIM];
static PR P[LIM];
stack<PR> ST;
set<int> S;
set<int>::iterator I;
// testcase loop
Read(T);
Fox1(t,T)
{
// input
Read(N);
Fox(i,N)
{
Read(H[i]);
P[i]=mp(H[i],i);
}
// PART 1: sum of distances
ans1=0;
// get base sum assuming no bridges
Fox(i,N)
ans1+=H[i];
ans1*=N-1;
Fox1(i,N-1)
ans1+=(LL)i*(N-i);
// process trees bottom-to-top
sort(P,P+N);
S.clear();
S.insert(-1);
S.insert(N);
Fox(i,N)
{
h=P[i].x;
j=P[i].y;
// find interval of paths having this as their shortest tree
I=S.lower_bound(j);
b=*I - 1;
I--;
a=*I + 1;
// subtract total distance saved by bridges
ans1-=(LL)h*2*((LL)(j-a)*(b-j) + (b-a));
// insert this tree
S.insert(j);
}
// PART 2: number of bridges
ans2=0;
// process trees left-to-right
while (!ST.empty())
ST.pop();
ST.push(mp(0,0));
Fox1(i,N-1)
if (H[i]>=H[i-1])
{
// at least as high as envelope's highest point, so build single bridge backwards
if (ST.top().x==H[i-1])
ST.pop();
ST.push(mp(H[i-1],i));
ans2++;
}
else
{
// clip off higher parts of envelope
j=i-1;
while (ST.top().x>H[i])
j=ST.top().y,ST.pop();
// build row of bridges back across, and update envelope
if (!ST.top().x)
ans2+=i-j;
else
{
ans2+=i-ST.top().y;
h=ST.top().x,ST.pop();
if (H[i]!=h)
ST.push(mp(h,j));
}
ST.push(mp(H[i],i));
}
// output
printf("Case #%d: %lld %lld\n",t,ans1,ans2);
}
return(0);
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273<p>A certain forest has <strong>N</strong> trees growing in it, and there just so happens to be a Fox living at the top of each one!The trees are numbered from 1 to <strong>N</strong>, and their bases are all arranged in a straight line on the ground,with 1 metre between the bases of each pair of adjacent trees <em>i</em> and <em>i</em> + 1.Each tree <em>i</em> is <strong>H<sub>i</sub></strong> metres tall.</p>
</p>The Foxen are all good friends with one another, and frequently like to go out for strolls to visit each other's homes.Rather than jumping directly between the trees, they prefer to always keep their paws firmly planted on some surface, such as tree trunks or the ground.As such, the shortest possible trip from the top of tree <em>i</em> to the top of another tree <em>j</em> requiresclimbing down tree <em>i</em> to the ground, walking along the ground to the base of tree <em>j</em>,and then climbing up to its top, resulting in a total distance of<strong>H<sub>i</sub></strong> + |<em>j</em> - <em>i</em>| + <strong>H<sub>j</sub></strong> metres traveled.</p>
<p>However, the Foxen aren't terribly satisfied with how long their trips currently take.Given the frequency of their strolls, they've decided to invest in reducing their travel distanceby constructing some bridges between the tree trunks.They're only interested in building metre-long, horizontal bridges.Each bridge may be constructed to connect any pair of adjacent trees <em>i</em> and <em>i</em> + 1,and it may be placed at any height above the ground, as long as it touches both of those tree trunks(in other words, its height must be no larger than the minimum of <strong>H<sub>i</sub></strong>and <strong>H<sub>i+1</sub></strong>).Multiple bridges may be constructed at different heights between any given pair of adjacent trees.Once bridges are installed, the Foxen will be willing to walk across them, potentially saving them the timeof descending all the way to the ground during their strolls.</p>
<p>There are <strong>N</strong> * <strong>(N - 1)</strong> / 2 different pairs of Foxen <em>i</em> and <em>j</em>who might want to meet up, requiring a trip to be taken from the top of tree <em>i</em> to the top of tree<em>j</em> (or vice versa).The Foxen's top priority is minimizing the sum of the <strong>N</strong> * <strong>(N - 1)</strong> / 2pairwise shortest distances of strolls which would be required for these visits to take place.Please help them determine the minimum possible value of this sum, assuming that they constructas many bridges as it takes.That being said, they don't want to spend all day constructing bridges either...as such, they're also interested in the minimum number of bridges which they can construct to achieve that minimumpossible sum of pairwise distances.</p>
<h3>Input</h3>
<p>Input begins with an integer <strong>T</strong>, the number of forests.For each forest, there are two lines. The first line contains the integer <strong>N</strong>.The second line contains <strong>N</strong> space-separated integers, the <em>i</em>th of which is the integer <strong>H<sub>i</sub></strong>.</p>
<h3>Output</h3>
<p>For the <em>i</em>th forest, print a line containing "Case #<strong>i</strong>: " followed by two integers: the minimum possible sum of pairwise shortest distances after any number of bridges are built (in metres), and the minimum number of bridges required to achieve that minimum sum.</p>
<h3>Constraints</h3>
<p>1 ≤ <strong>T</strong> ≤ 30 <br />2 ≤ <strong>N</strong> ≤ 500,000 <br />1 ≤ <strong>H<sub>i</sub></strong> ≤ 10,000,000 <br />The sum of <strong>N</strong> values across all <strong>T</strong> cases does not exceed 6,000,000.</p>
<h3>Explanation of Sample</h3>
<p>In the first case, the Foxen's optimal strategy is to construct one bridge between the first 2 trees at a height of 20m, and another bridge between the last 2 trees at a height of 10m. With this configuration, the shortest path between the first 2 trees' tops is 11m long, as is the shortest path for the last 2 trees. The shortest path between the first tree's top and the last tree's top is 22m long. The resulting sum of pairwise shortest distances is then 44m, which is the minimum possible sum.</p>123version https://git-lfs.github.com/spec/v1oid sha256:9fe710744cbf537741bbb7ebe8a9888e7917244eb30214ea02d0b11e65453b84size 3655701212345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970A certain forest has **N** trees growing in it, and there just so happens tobe a Fox living at the top of each one! The trees are numbered from 1 to**N**, and their bases are all arranged in a straight line on the ground, with1 metre between the bases of each pair of adjacent trees _i_ and _i_ \+ 1.Each tree _i_ is **Hi** metres tall.
The Foxen are all good friends with one another, and frequently like to go outfor strolls to visit each other's homes. Rather than jumping directly betweenthe trees, they prefer to always keep their paws firmly planted on somesurface, such as tree trunks or the ground. As such, the shortest possibletrip from the top of tree _i_ to the top of another tree _j_ requires climbingdown tree _i_ to the ground, walking along the ground to the base of tree _j_,and then climbing up to its top, resulting in a total distance of **Hi** \+|_j_ \- _i_| + **Hj** metres traveled.
However, the Foxen aren't terribly satisfied with how long their tripscurrently take. Given the frequency of their strolls, they've decided toinvest in reducing their travel distance by constructing some bridges betweenthe tree trunks. They're only interested in building metre-long, horizontalbridges. Each bridge may be constructed to connect any pair of adjacent trees_i_ and _i_ \+ 1, and it may be placed at any height above the ground, as longas it touches both of those tree trunks (in other words, its height must be nolarger than the minimum of **Hi** and **Hi+1**). Multiple bridges may beconstructed at different heights between any given pair of adjacent trees.Once bridges are installed, the Foxen will be willing to walk across them,potentially saving them the time of descending all the way to the groundduring their strolls.
There are **N** * **(N - 1)** / 2 different pairs of Foxen _i_ and _j_ whomight want to meet up, requiring a trip to be taken from the top of tree _i_to the top of tree _j_ (or vice versa). The Foxen's top priority is minimizingthe sum of the **N** * **(N - 1)** / 2 pairwise shortest distances of strollswhich would be required for these visits to take place. Please help themdetermine the minimum possible value of this sum, assuming that they constructas many bridges as it takes. That being said, they don't want to spend all dayconstructing bridges either... as such, they're also interested in the minimumnumber of bridges which they can construct to achieve that minimum possiblesum of pairwise distances.
### Input
Input begins with an integer **T**, the number of forests. For each forest,there are two lines. The first line contains the integer **N**. The secondline contains **N** space-separated integers, the _i_th of which is theinteger **Hi**.
### Output
For the _i_th forest, print a line containing "Case #**i**: " followed by twointegers: the minimum possible sum of pairwise shortest distances after anynumber of bridges are built (in metres), and the minimum number of bridgesrequired to achieve that minimum sum.
### Constraints
1 ≤ **T** ≤ 30 2 ≤ **N** ≤ 500,000 1 ≤ **Hi** ≤ 10,000,000 The sum of **N** values across all **T** cases does not exceed 6,000,000.
### Explanation of Sample
In the first case, the Foxen's optimal strategy is to construct one bridgebetween the first 2 trees at a height of 20m, and another bridge between thelast 2 trees at a height of 10m. With this configuration, the shortest pathbetween the first 2 trees' tops is 11m long, as is the shortest path for thelast 2 trees. The shortest path between the first tree's top and the lasttree's top is 22m long. The resulting sum of pairwise shortest distances isthen 44m, which is the minimum possible sum.
123456789101112131415161718192021222324252627282930Case #1: 44 2Case #2: 30 6Case #3: 158 9Case #4: 213877494 8Case #5: 67828 26Case #6: 40 4Case #7: 62 5Case #8: 64 4Case #9: 66 5Case #10: 1 1Case #11: 1270694467527793009 3991523Case #12: 1270089310668572086 4233586Case #13: 1271258716744254028 4187288Case #14: 1076962260755154 368610Case #15: 154085676243923872 2143830Case #16: 34868734969578 192125Case #17: 42013086963397592 1016400Case #18: 14227652173282473 970767Case #19: 63891446396267944 1209911Case #20: 54609935358656 317923Case #21: 46568399312743270 3842959Case #22: 42359072334166 267152801Case #23: 23050539441884206 17994431223Case #24: 20169516401652989 16526262785Case #25: 9348834263019686 9893968817Case #26: 32509644062872258 22648141115Case #27: 54275273806021 317817471Case #28: 3562914776995796 5205231509Case #29: 46421890364145250 28680626068Case #30: 2608880906805372 4195541434123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210// Hacker Cup 2017
// Final Round
// Fox Tolls
// Jacob Plachta
#include <algorithm>
#include <functional>
#include <numeric>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <cassert>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <sstream>
using namespace std;
#define LL long long
#define LD long double
#define PR pair<int,int>
#define Fox(i,n) for (i=0; i<n; i++)
#define Fox1(i,n) for (i=1; i<=n; i++)
#define FoxI(i,a,b) for (i=a; i<=b; i++)
#define FoxR(i,n) for (i=(n)-1; i>=0; i--)
#define FoxR1(i,n) for (i=n; i>0; i--)
#define FoxRI(i,a,b) for (i=b; i>=a; i--)
#define Foxen(i,s) for (i=s.begin(); i!=s.end(); i++)
#define Min(a,b) a=min(a,b)
#define Max(a,b) a=max(a,b)
#define Sz(s) int((s).size())
#define All(s) (s).begin(),(s).end()
#define Fill(s,v) memset(s,v,sizeof(s))
#define pb push_back
#define mp make_pair
#define x first
#define y second
template<typename T> T Abs(T x) { return(x<0 ? -x : x); }
template<typename T> T Sqr(T x) { return(x*x); }
const int INF = (int)1e9;
const LD EPS = 1e-12;
const LD PI = acos(-1.0);
bool Read(int &x)
{
char c,r=0,n=0;
x=0;
for(;;)
{
c=getchar();
if ((c<0) && (!r))
return(0);
if ((c=='-') && (!r))
n=1;
else
if ((c>='0') && (c<='9'))
x=x*10+c-'0',r=1;
else
if (r)
break;
}
if (n)
x=-x;
return(1);
}
#define LIM 500000
#define LIM2 2100000
#define MOD 1000000007
int ind;
int L[2][LIM],R[2][LIM],S[2][LIM];
vector<int> con[LIM];
int sz;
vector<int> lst[LIM2];
void rec(int z,int i,int p)
{
int j,k;
L[z][i]=ind++;
Fox(j,Sz(con[i]))
if ((k=con[i][j])!=p)
rec(z,k,i);
R[z][i]=ind-1;
S[z][i]=R[z][i]-L[z][i];
}
int Query(int i,int r1,int r2,int a,int b,int v1,int v2)
{
if ((a<=r1) && (r2<=b))
{
return(
lower_bound(lst[i].begin(),lst[i].end(),v2+1) -
lower_bound(lst[i].begin(),lst[i].end(),v1)
);
}
i<<=1;
int m=(r1+r2)>>1,s=0;
if (a<=m)
s+=Query(i,r1,m,a,b,v1,v2);
if (b>m)
s+=Query(i+1,m+1,r2,a,b,v1,v2);
return(s);
}
int main()
{
// vars
int T,t;
int N,M;
int i,j,k,a,b,z,z1,z2;
int ans,tot;
char c1,c2;
// testcase loop
Read(T);
Fox1(t,T)
{
// input
Read(N),Read(M);
Fox(z,2)
{
// clear graph
Fox(i,N)
con[i].clear();
// input tree
Fox(i,N-1)
{
Read(j),Read(k),j--,k--;
con[j].pb(k);
con[k].pb(j);
}
// calculate DFS ordering for this tree
ind=0;
rec(z,0,0);
}
// construct segment tree
for(sz=1;sz<N;sz<<=1);
Fox(i,sz<<1)
lst[i].clear();
Fox(i,N)
lst[sz+L[0][i]].pb(L[1][i]);
FoxR1(i,sz-1)
{
j=i<<1,k=j+1;
a=b=0;
while ((a<Sz(lst[j])) && (b<Sz(lst[k])))
if (lst[j][a]<lst[k][b])
lst[i].pb(lst[j][a++]);
else
lst[i].pb(lst[k][b++]);
while (a<Sz(lst[j]))
lst[i].pb(lst[j][a++]);
while (b<Sz(lst[k]))
lst[i].pb(lst[k][b++]);
}
// handle days
tot=0;
while (M--)
{
// input
Read(i),Read(j),i--,j--;
scanf("%c %c",&c1,&c2);
z1=c1=='T' ? 0 : 1;
z2=c2=='T' ? 0 : 1;
// same tree?
if (z1==z2)
{
z=z1;
if (L[z][i]>L[z][j])
swap(i,j);
// nested subtrees?
if (L[z][j]<=R[z][i])
{
ans=2*S[z][i] + S[z][j];
goto Done;
}
// disjoint subtrees
ans=2*(S[z][i] + S[z][j]);
goto Done;
}
// different trees
if (z1)
swap(i,j);
ans=2*(S[0][i] + S[1][j]);
if ((S[0][i]) && (S[1][j]))
ans-=Query(1,0,sz-1,L[0][i]+1,R[0][i],L[1][j]+1,R[1][j]);
// update total
Done:;
tot=((LL)tot*12345+ans)%MOD;
}
//output
printf("Case #%d: %d\n",t,tot);
}
return(0);
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100<p>A group of <strong>N</strong> Foxen reside in a peaceful forest community.Each Fox's property consists of a tree stump as well as an underground den.There are <strong>N</strong> - 1 two-way paths on the ground running amongst the tree stumps, with the <em>i</em>th path connecting the stumps belonging to two different Foxen <strong>A<sub>i</sub></strong> and <strong>B<sub>i</sub></strong>, such that all <strong>N</strong> stumps can be reached from one another by following a sequence of paths. Similarly, there are <strong>N</strong> - 1 underground tunnels running amongst the dens, with the <em>i</em>th tunnel connecting the dens belonging to Foxen <strong>C<sub>i</sub></strong> and <strong>D<sub>i</sub></strong>, such that all <strong>N</strong> dens can be reached from one another. There's additionally a passageway connecting the tree stump and den belonging to the 1st Fox, which is the only way in the whole forest to get underground from the surface and vice versa.</p>
<p>At night the Foxen sleep in their dens, but during the daytime, they like to emerge and relax lazily on their tree stumps.Each day, every Fox takes a trip from their den to their tree stump,taking the unique shortest path through the system of tunnels and paths to get there.However, this often requires passing through other Foxen's properties, which they don't appreciate a whole lot. To compensate, the Foxen have started charging each other tolls for said passage. They don't have much of a currency, but Foxen do love crackers, so those will do. Over a given period of <strong>M</strong> days, on the <em>i</em>th day, two different Foxen <strong>W<sub>i</sub></strong> and <strong>X<sub>i</sub></strong> will each charge tolls for one of their pieces of property. If <strong>Y<sub>i</sub></strong> = "T", then Fox <strong>W<sub>i</sub></strong> will be charging tolls for passage through their tree stump. Otherwise, if <strong>Y<sub>i</sub></strong> = "D", then Fox <strong>W<sub>i</sub></strong> will instead be charging tolls for passage through their den. Similarly, Fox <strong>X<sub>i</sub></strong> will be charging tolls for passage through either their tree stump (if <strong>Z<sub>i</sub></strong>= "T") or their den (if <strong>Z<sub>i</sub></strong>= "D").</p>
<p>Each day, whenever a Fox passes through another Fox's den or stump which is subject to tolls on that day, they'll normally need to pay up with 2 crackers. However, if they've already paid a toll earlier on that same trip, then the property-owning Fox will take pity and only charge them 1 cracker instead of 2. As such, a Fox's daily trip may end up costing them at most 3 crackers. A Fox will never charge themselves a toll, of course. If a pair of Foxen both owe each other crackers, they'll still both pay up as normal, rather than attempting to minimize the number of cracker transactions performed.</p>
<p>The Foxen are having some trouble keeping track of how many crackers they owe one another. On each of the <strong>M</strong> days, they'd like to count up the total number of crackers which will be charged as part of the tolls for the <strong>N</strong> trips taken on that day. To avoid dealing with too many large numbers, they'd like to combine these <strong>M</strong> cracker counts into a single value as follows (where <strong>V<sub>i</sub></strong> is the <em>i</em>th day's count):</p>
<p> ( ... (((<strong>V<sub>1</sub></strong> * 12,345) + <strong>V<sub>2</sub></strong>) * 12,345 + <strong>V<sub>3</sub></strong>) ... * 12,345 + <strong>V<sub>M</sub></strong>) modulo 1,000,000,007</p>
<p>Please help the Foxen compute this combined value!</p>
<h3>Input</h3>
<p>Input begins with an integer <strong>T</strong>, the number of different communities of Foxen.For each community of Foxen, there is first a line containing the space-separated integers <strong>N</strong> and <strong>M</strong>.Then <strong>N - 1</strong> lines follow, the <em>i</em>th of which contains the space-separated integers<strong>A<sub>i</sub></strong> and <strong>B<sub>i</sub></strong>.Then <strong>N - 1</strong> lines follow, the <em>i</em>th of which contains the space-separated integers<strong>C<sub>i</sub></strong> and <strong>D<sub>i</sub></strong>.Then <strong>M</strong> lines follow, the <em>i</em>th of which contains the integers<strong>W<sub>i</sub></strong> and <strong>X<sub>i</sub></strong> and the characters<strong>Y<sub>i</sub></strong> and <strong>Z<sub>i</sub></strong>, all separated by spaces.</p>
<h3>Output</h3>
<p>For the <em>i</em>th community of Foxen, print a line containing "Case #<strong>i</strong>: " followed by a single integer, the requested combined value based on the <strong>M</strong> days' cracker counts, modulo 1,000,000,007.</p>
<h3>Constraints</h3>
<p>1 ≤ <strong>T</strong> ≤ 30<br />2 ≤ <strong>N</strong> ≤ 500,000 <br />1 ≤ <strong>M</strong> ≤ 500,000 <br />1 ≤ <strong>A<sub>i</sub></strong>, <strong>B<sub>i</sub></strong>, <strong>C<sub>i</sub></strong>, <strong>D<sub>i</sub></strong>, <strong>W<sub>i</sub></strong>, <strong>X<sub>i</sub></strong>≤ <strong>N</strong> <br />Both the sum of <strong>N</strong> values and the sum of <strong>M</strong> values across all <strong>T</strong> cases do not exceed 1,500,000.</p>
<h3>Explanation of Sample</h3>
<p>In the first case, Fox 1 doesn't need to pay any tolls to get from its den to its tree stump, while Fox 2 must pay 2 crackers to complete its trip due to passing through Fox's 1 tree stump.</p>
<p>In the second case, 5 crackers will be charged on the first day (the 3 Foxen must pay 0, 2, and 3 crackers, respectively), 2 crackers will be charged on the second day, and none will be charged on the third day. This results in a final answer of (((5 * 12,345) + 2) * 12,345) + 0) modulo 1,000,000,007 = 762,019,815.</p>
<p>In the third case, 7, 6, and 4 crackers will be charged on each of the three days, respectively.</p>123version https://git-lfs.github.com/spec/v1oid sha256:1df58783e9feba1244b6e94657061d40c81c94a6d4c1df75f194e0f854256cb0size 471548831234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889A group of **N** Foxen reside in a peaceful forest community. Each Fox'sproperty consists of a tree stump as well as an underground den. There are**N** \- 1 two-way paths on the ground running amongst the tree stumps, withthe _i_th path connecting the stumps belonging to two different Foxen **Ai**and **Bi**, such that all **N** stumps can be reached from one another byfollowing a sequence of paths. Similarly, there are **N** \- 1 undergroundtunnels running amongst the dens, with the _i_th tunnel connecting the densbelonging to Foxen **Ci** and **Di**, such that all **N** dens can be reachedfrom one another. There's additionally a passageway connecting the tree stumpand den belonging to the 1st Fox, which is the only way in the whole forest toget underground from the surface and vice versa.
At night the Foxen sleep in their dens, but during the daytime, they like toemerge and relax lazily on their tree stumps. Each day, every Fox takes a tripfrom their den to their tree stump, taking the unique shortest path throughthe system of tunnels and paths to get there. However, this often requirespassing through other Foxen's properties, which they don't appreciate a wholelot. To compensate, the Foxen have started charging each other tolls for saidpassage. They don't have much of a currency, but Foxen do love crackers, sothose will do. Over a given period of **M** days, on the _i_th day, twodifferent Foxen **Wi** and **Xi** will each charge tolls for one of theirpieces of property. If **Yi** = "T", then Fox **Wi** will be charging tollsfor passage through their tree stump. Otherwise, if **Yi** = "D", then Fox**Wi** will instead be charging tolls for passage through their den.Similarly, Fox **Xi** will be charging tolls for passage through either theirtree stump (if **Zi**= "T") or their den (if **Zi**= "D").
Each day, whenever a Fox passes through another Fox's den or stump which issubject to tolls on that day, they'll normally need to pay up with 2 crackers.However, if they've already paid a toll earlier on that same trip, then theproperty-owning Fox will take pity and only charge them 1 cracker instead of2. As such, a Fox's daily trip may end up costing them at most 3 crackers. AFox will never charge themselves a toll, of course. If a pair of Foxen bothowe each other crackers, they'll still both pay up as normal, rather thanattempting to minimize the number of cracker transactions performed.
The Foxen are having some trouble keeping track of how many crackers they oweone another. On each of the **M** days, they'd like to count up the totalnumber of crackers which will be charged as part of the tolls for the **N**trips taken on that day. To avoid dealing with too many large numbers, they'dlike to combine these **M** cracker counts into a single value as follows(where **Vi** is the _i_th day's count):
( ... (((**V1** * 12,345) + **V2**) * 12,345 + **V3**) ... * 12,345 + **VM**)modulo 1,000,000,007
Please help the Foxen compute this combined value!
### Input
Input begins with an integer **T**, the number of different communities ofFoxen. For each community of Foxen, there is first a line containing thespace-separated integers **N** and **M**. Then **N - 1** lines follow, the_i_th of which contains the space-separated integers **Ai** and **Bi**. Then**N - 1** lines follow, the _i_th of which contains the space-separatedintegers **Ci** and **Di**. Then **M** lines follow, the _i_th of whichcontains the integers **Wi** and **Xi** and the characters **Yi** and **Zi**,all separated by spaces.
### Output
For the _i_th community of Foxen, print a line containing "Case #**i**: "followed by a single integer, the requested combined value based on the **M**days' cracker counts, modulo 1,000,000,007.
### Constraints
1 ≤ **T** ≤ 30 2 ≤ **N** ≤ 500,000 1 ≤ **M** ≤ 500,000 1 ≤ **Ai**, **Bi**, **Ci**, **Di**, **Wi**, **Xi** ≤ **N** Both the sum of **N** values and the sum of **M** values across all **T**cases do not exceed 1,500,000.
### Explanation of Sample
In the first case, Fox 1 doesn't need to pay any tolls to get from its den toits tree stump, while Fox 2 must pay 2 crackers to complete its trip due topassing through Fox's 1 tree stump.
In the second case, 5 crackers will be charged on the first day (the 3 Foxenmust pay 0, 2, and 3 crackers, respectively), 2 crackers will be charged onthe second day, and none will be charged on the third day. This results in afinal answer of (((5 * 12,345) + 2) * 12,345) + 0) modulo 1,000,000,007 =762,019,815.
In the third case, 7, 6, and 4 crackers will be charged on each of the threedays, respectively.
123456789101112131415161718192021222324252627282930Case #1: 2Case #2: 762019815Case #3: 66867242Case #4: 537335547Case #5: 874784450Case #6: 2Case #7: 24692Case #8: 73447302Case #9: 669976683Case #10: 219446081Case #11: 904947270Case #12: 409408195Case #13: 865385861Case #14: 389014816Case #15: 181175579Case #16: 908478491Case #17: 794274425Case #18: 546269402Case #19: 475069547Case #20: 702572093Case #21: 326135465Case #22: 35062074Case #23: 726328157Case #24: 388616994Case #25: 186249620Case #26: 395528232Case #27: 912756755Case #28: 708169574Case #29: 158143482Case #30: 679743851234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586<p><strong>"Okay, Wizard, cast your spell!"</strong></p>
<p>But which of your many spells to cast? In the ever-popular role-playing game <em>Dungeons & Dragons</em>, or <em>D&D</em>, you determine a spell's damage by rolling polyhedraldice with 4, 6, 8, 10, 12, or 20 sides. Since there's a lot of dice-rollinginvolved, players use shorthand to denote which dice should be rolled.<strong>X</strong>d<strong>Y</strong> means "roll a <strong>Y</strong>-sided die <strong>X</strong> times, and sum the rolls''. Sometimes, you must add or subtract a value <strong>Z</strong> afteryou finish rolling, in which case the notation is <strong>X</strong>d<strong>Y</strong>+<strong>Z</strong> or <strong>X</strong>d<strong>Y</strong>-<strong>Z</strong> respectively.</p>
<p>For example, if you roll 2d4+1, you'll end up with a result between 3 and 9inclusive. If you roll 1d6-3, your result will be between -2 and 3 inclusive.</p>
<p>In <em>D&D</em>, wizards are powerful but flimsy spellcasters. As a wizardfighting a zombie, your best strategy is to maximize the chance that you cankill the zombie with a single spell before it has a chance to retaliate. Whatspell should you cast?</p>
<h3>Input</h3>
<p>Input begins with an integer <strong>T</strong>, the number of zombiesyou'll fight. For each zombie, there are two lines. The first contains two integers, <strong>H</strong> and <strong>S</strong>, the minimum amount ofdamage it takes to defeat the zombie, and the number of spells you have prepared, respectively. The second line contains <strong>S</strong> spell descriptions separated bysingle spaces. A spell description is simply the amount of damage a spell doesin the notation described above. </p>
<h3>Output</h3>
<p>For each zombie, print a line containing the probability of defeating the zombie if you select your spell optimally.</p>
<p>Absolute and relative errors of up to 1e-6 will be ignored.</p>
<h3>Constraints</h3>
<p>1 ≤ <strong>T</strong> ≤ 1,000 <br />1 ≤ <strong>H</strong> ≤ 10,000 <br />2 ≤ <strong>S</strong> ≤ 10 <br /></p>
<p>Additionally, the following constraints will hold for each spell:</p>
<p>1 ≤ <strong>X</strong> ≤ 20 <br /><strong>Y</strong> ∈ {4, 6, 8, 10, 12, 20} <br />1 ≤ <strong>Z</strong> ≤ 10,000, if <strong>Z</strong> is specified. <br /><strong>X</strong>, <strong>Y</strong>, and <strong>Z</strong> will be integers with no leading zeros. <br /></p>
<h3>Explanation of Sample</h3>
<p>In the first case, you can guarantee a kill with the first spell, which must always do at least 2 damage.</p>
<p>In the third case, your first spell is the best. If you roll a 4, you'll do the requisite 8 damage. The second spell requiresrolling a 4 on two dice rather than just one, and the third spell requires rolling a 4 on all three dice.</p>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107// Hacker Cup 2017
// Qualification Round
// Fighting The Zombie
// Wesley May
import java.util.*;
public class FightingTheZombie
{
static int H;
public static void main(String args[])
{
double EPS = 0.000001;
Scanner scan = new Scanner(System.in);
int T = scan.nextInt();
for(int ca=1;ca <= T;ca++)
{
H = scan.nextInt();
int S = scan.nextInt();
Spell[] a = new Spell[S];
for(int i=0;i < S;i++)
{
String str = scan.next();
int X, Y, Z;
int didx = str.indexOf("d");
int plusidx = str.indexOf("+");
int minusidx = str.indexOf("-");
X = Integer.parseInt(str.substring(0, didx));
if(plusidx >= 0)
{
Y = Integer.parseInt(str.substring(didx+1, plusidx));
Z = Integer.parseInt(str.substring(plusidx));
}
else if(minusidx >= 0)
{
Y = Integer.parseInt(str.substring(didx+1,minusidx));
Z = Integer.parseInt(str.substring(minusidx));
}
else
{
Y = Integer.parseInt(str.substring(didx+1));
Z = 0;
}
a[i] = new Spell(X, Y, Z);
}
Arrays.sort(a);
System.out.printf("Case #%d: %.6f\n", ca, a[0].p);
}
}
static class Spell implements Comparable<Spell>
{
int x, y, z;
public double p;
double[][] dp;
public Spell(int ix, int iy, int iz)
{
x = ix;
y = iy;
z = iz;
int newH = H - z;
if(newH <= 0)
{
p = 1;
return;
}
dp = new double[newH+1][x+1];
for(int i=0;i < dp.length;i++)
Arrays.fill(dp[i], -1);
p = f(newH, x);
}
private double f(int h, int d)
{
if(h <= 0) return 1;
if(d == 0) return 0;
if(dp[h][d] >= 0) return dp[h][d];
double ans = 0;
for(int i=1;i <= y;i++)
{
ans += (1.0 / y) * f(h-i, d-1);
}
return dp[h][d] = ans;
}
public int compareTo(Spell that) {
if(this.p > that.p) return -1;
if(this.p < that.p) return 1;
return 0;
}
}
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758**"Okay, Wizard, cast your spell!"**
But which of your many spells to cast? In the ever-popular role-playing game_Dungeons & Dragons_, or _D&D_, you determine a spell's damage by rollingpolyhedral dice with 4, 6, 8, 10, 12, or 20 sides. Since there's a lot ofdice-rolling involved, players use shorthand to denote which dice should berolled. **X**d**Y** means "roll a **Y**-sided die **X** times, and sum therolls''. Sometimes, you must add or subtract a value **Z** after you finishrolling, in which case the notation is **X**d**Y**+**Z** or **X**d**Y**-**Z**respectively.
For example, if you roll 2d4+1, you'll end up with a result between 3 and 9inclusive. If you roll 1d6-3, your result will be between -2 and 3 inclusive.
In _D&D_, wizards are powerful but flimsy spellcasters. As a wizard fighting azombie, your best strategy is to maximize the chance that you can kill thezombie with a single spell before it has a chance to retaliate. What spellshould you cast?
### Input
Input begins with an integer **T**, the number of zombies you'll fight. Foreach zombie, there are two lines. The first contains two integers, **H** and**S**, the minimum amount of damage it takes to defeat the zombie, and thenumber of spells you have prepared, respectively. The second line contains**S** spell descriptions separated by single spaces. A spell description issimply the amount of damage a spell does in the notation described above.
### Output
For each zombie, print a line containing the probability of defeating thezombie if you select your spell optimally.
Absolute and relative errors of up to 1e-6 will be ignored.
### Constraints
1 ≤ **T** ≤ 1,000 1 ≤ **H** ≤ 10,000 2 ≤ **S** ≤ 10
Additionally, the following constraints will hold for each spell:
1 ≤ **X** ≤ 20 **Y** ∈ {4, 6, 8, 10, 12, 20} 1 ≤ **Z** ≤ 10,000, if **Z** is specified. **X**, **Y**, and **Z** will be integers with no leading zeros.
### Explanation of Sample
In the first case, you can guarantee a kill with the first spell, which mustalways do at least 2 damage.
In the third case, your first spell is the best. If you roll a 4, you'll dothe requisite 8 damage. The second spell requires rolling a 4 on two dicerather than just one, and the third spell requires rolling a 4 on all threedice.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005Case #1: 1.000000Case #2: 0.998520Case #3: 0.250000Case #4: 0.002500Case #5: 0.400000Case #6: 1.000000Case #7: 0.000233Case #8: 1.000000Case #9: 1.000000Case #10: 1.000000Case #11: 0.999959Case #12: 1.000000Case #13: 0.999869Case #14: 0.999892Case #15: 1.000000Case #16: 1.000000Case #17: 1.000000Case #18: 1.000000Case #19: 1.000000Case #20: 0.964421Case #21: 0.000000Case #22: 0.983925Case #23: 0.999995Case #24: 1.000000Case #25: 0.999973Case #26: 1.000000Case #27: 0.981068Case #28: 0.998299Case #29: 0.954580Case #30: 1.000000Case #31: 1.000000Case #32: 0.999939Case #33: 1.000000Case #34: 0.864193Case #35: 1.000000Case #36: 0.999976Case #37: 1.000000Case #38: 1.000000Case #39: 1.000000Case #40: 0.546425Case #41: 1.000000Case #42: 0.999659Case #43: 1.000000Case #44: 1.000000Case #45: 0.999892Case #46: 1.000000Case #47: 1.000000Case #48: 0.336282Case #49: 1.000000Case #50: 0.999982Case #51: 0.998978Case #52: 1.000000Case #53: 0.977943Case #54: 1.000000Case #55: 1.000000Case #56: 1.000000Case #57: 1.000000Case #58: 0.999991Case #59: 0.000016Case #60: 0.999366Case #61: 1.000000Case #62: 0.968075Case #63: 0.086123Case #64: 1.000000Case #65: 0.999976Case #66: 1.000000Case #67: 1.000000Case #68: 0.982362Case #69: 0.996338Case #70: 1.000000Case #71: 0.987706Case #72: 1.000000Case #73: 0.971707Case #74: 0.000018Case #75: 1.000000Case #76: 0.001207Case #77: 1.000000Case #78: 0.663941Case #79: 0.999629Case #80: 1.000000Case #81: 1.000000Case #82: 1.000000Case #83: 0.996675Case #84: 0.987480Case #85: 0.002587Case #86: 0.999914Case #87: 1.000000Case #88: 1.000000Case #89: 1.000000Case #90: 0.999998Case #91: 0.389099Case #92: 0.999999Case #93: 0.989286Case #94: 1.000000Case #95: 1.000000Case #96: 0.933991Case #97: 1.000000Case #98: 0.821073Case #99: 1.000000Case #100: 1.000000Case #101: 1.000000Case #102: 0.083033Case #103: 0.658445Case #104: 0.700241Case #105: 1.000000Case #106: 0.888174Case #107: 0.990281Case #108: 0.999858Case #109: 0.977055Case #110: 1.000000Case #111: 0.997906Case #112: 1.000000Case #113: 0.972764Case #114: 1.000000Case #115: 0.855255Case #116: 0.662303Case #117: 1.000000Case #118: 1.000000Case #119: 1.000000Case #120: 0.999999Case #121: 0.988194Case #122: 1.000000Case #123: 1.000000Case #124: 0.999996Case #125: 1.000000Case #126: 1.000000Case #127: 0.999453Case #128: 0.999973Case #129: 1.000000Case #130: 0.999995Case #131: 0.999980Case #132: 0.999917Case #133: 0.009258Case #134: 1.000000Case #135: 0.894842Case #136: 0.999992Case #137: 1.000000Case #138: 1.000000Case #139: 1.000000Case #140: 1.000000Case #141: 0.994821Case #142: 0.999912Case #143: 0.999979Case #144: 1.000000Case #145: 1.000000Case #146: 0.018396Case #147: 0.998735Case #148: 0.085678Case #149: 0.911379Case #150: 0.992869Case #151: 1.000000Case #152: 0.143940Case #153: 1.000000Case #154: 1.000000Case #155: 1.000000Case #156: 0.258628Case #157: 0.418266Case #158: 1.000000Case #159: 1.000000Case #160: 0.998925Case #161: 0.999982Case #162: 1.000000Case #163: 0.175668Case #164: 0.999811Case #165: 1.000000Case #166: 1.000000Case #167: 1.000000Case #168: 0.251536Case #169: 0.634878Case #170: 1.000000Case #171: 0.874498Case #172: 1.000000Case #173: 0.990470Case #174: 1.000000Case #175: 1.000000Case #176: 0.999998Case #177: 1.000000Case #178: 0.988586Case #179: 0.999692Case #180: 0.999991Case #181: 1.000000Case #182: 0.978541Case #183: 1.000000Case #184: 0.805556Case #185: 1.000000Case #186: 0.947340Case #187: 0.998707Case #188: 1.000000Case #189: 0.001151Case #190: 0.473714Case #191: 0.995358Case #192: 1.000000Case #193: 0.949930Case #194: 1.000000Case #195: 0.999976Case #196: 1.000000Case #197: 1.000000Case #198: 1.000000Case #199: 0.799600Case #200: 0.147309Case #201: 1.000000Case #202: 0.060663Case #203: 0.329834Case #204: 0.000000Case #205: 1.000000Case #206: 0.999963Case #207: 1.000000Case #208: 1.000000Case #209: 1.000000Case #210: 0.999998Case #211: 0.872667Case #212: 1.000000Case #213: 1.000000Case #214: 0.538327Case #215: 1.000000Case #216: 0.999954Case #217: 0.001962Case #218: 0.999993Case #219: 1.000000Case #220: 0.926237Case #221: 1.000000Case #222: 1.000000Case #223: 0.999747Case #224: 0.000000Case #225: 1.000000Case #226: 0.406616Case #227: 0.978664Case #228: 0.999999Case #229: 0.110985Case #230: 1.000000Case #231: 0.959743Case #232: 0.986895Case #233: 1.000000Case #234: 1.000000Case #235: 1.000000Case #236: 0.999927Case #237: 1.000000Case #238: 1.000000Case #239: 0.995914Case #240: 1.000000Case #241: 1.000000Case #242: 0.994729Case #243: 1.000000Case #244: 0.999867Case #245: 0.986895Case #246: 1.000000Case #247: 0.674402Case #248: 1.000000Case #249: 1.000000Case #250: 0.999905Case #251: 0.970590Case #252: 1.000000Case #253: 0.797458Case #254: 0.215281Case #255: 1.000000Case #256: 1.000000Case #257: 0.999994Case #258: 0.999892Case #259: 1.000000Case #260: 0.990961Case #261: 0.993895Case #262: 0.999981Case #263: 1.000000Case #264: 1.000000Case #265: 1.000000Case #266: 0.999917Case #267: 1.000000Case #268: 0.178314Case #269: 0.999996Case #270: 1.000000Case #271: 0.999992Case #272: 1.000000Case #273: 0.957793Case #274: 1.000000Case #275: 1.000000Case #276: 0.117238Case #277: 0.999985Case #278: 0.999999Case #279: 1.000000Case #280: 0.999991Case #281: 1.000000Case #282: 1.000000Case #283: 0.789916Case #284: 0.905973Case #285: 0.406027Case #286: 1.000000Case #287: 1.000000Case #288: 0.999994Case #289: 1.000000Case #290: 0.990847Case #291: 0.970183Case #292: 1.000000Case #293: 1.000000Case #294: 1.000000Case #295: 1.000000Case #296: 0.752963Case #297: 0.999998Case #298: 0.967070Case #299: 0.949402Case #300: 1.000000Case #301: 0.992311Case #302: 1.000000Case #303: 1.000000Case #304: 0.999991Case #305: 0.999981Case #306: 1.000000Case #307: 0.998531Case #308: 1.000000Case #309: 0.997420Case #310: 1.000000Case #311: 1.000000Case #312: 0.999998Case #313: 0.000000Case #314: 1.000000Case #315: 0.953125Case #316: 0.999998Case #317: 1.000000Case #318: 0.994617Case #319: 0.002063Case #320: 1.000000Case #321: 1.000000Case #322: 1.000000Case #323: 0.013688Case #324: 0.648782Case #325: 1.000000Case #326: 1.000000Case #327: 0.999997Case #328: 1.000000Case #329: 0.398225Case #330: 1.000000Case #331: 1.000000Case #332: 1.000000Case #333: 1.000000Case #334: 1.000000Case #335: 0.999677Case #336: 0.115688Case #337: 1.000000Case #338: 0.999996Case #339: 1.000000Case #340: 0.999552Case #341: 1.000000Case #342: 0.999527Case #343: 0.999983Case #344: 1.000000Case #345: 0.998238Case #346: 1.000000Case #347: 1.000000Case #348: 0.967792Case #349: 0.999954Case #350: 0.037066Case #351: 1.000000Case #352: 1.000000Case #353: 1.000000Case #354: 0.902302Case #355: 1.000000Case #356: 0.518357Case #357: 1.000000Case #358: 1.000000Case #359: 1.000000Case #360: 1.000000Case #361: 1.000000Case #362: 1.000000Case #363: 0.997938Case #364: 0.979664Case #365: 0.367250Case #366: 1.000000Case #367: 0.997903Case #368: 0.999990Case #369: 0.049500Case #370: 1.000000Case #371: 1.000000Case #372: 0.015326Case #373: 1.000000Case #374: 1.000000Case #375: 0.999997Case #376: 1.000000Case #377: 0.999989Case #378: 0.935200Case #379: 0.999292Case #380: 0.774778Case #381: 0.966624Case #382: 1.000000Case #383: 1.000000Case #384: 1.000000Case #385: 0.765625Case #386: 1.000000Case #387: 0.027236Case #388: 1.000000Case #389: 1.000000Case #390: 1.000000Case #391: 0.997964Case #392: 0.581734Case #393: 0.999999Case #394: 0.999904Case #395: 0.998925Case #396: 0.817803Case #397: 0.994185Case #398: 0.000033Case #399: 1.000000Case #400: 1.000000Case #401: 1.000000Case #402: 0.394980Case #403: 0.999999Case #404: 0.999999Case #405: 1.000000Case #406: 1.000000Case #407: 1.000000Case #408: 1.000000Case #409: 1.000000Case #410: 0.963475Case #411: 0.105839Case #412: 0.998678Case #413: 0.994284Case #414: 0.987151Case #415: 1.000000Case #416: 0.947491Case #417: 1.000000Case #418: 1.000000Case #419: 0.999995Case #420: 1.000000Case #421: 1.000000Case #422: 1.000000Case #423: 0.000183Case #424: 0.421243Case #425: 0.907437Case #426: 0.025450Case #427: 0.999996Case #428: 1.000000Case #429: 0.912892Case #430: 1.000000Case #431: 1.000000Case #432: 0.999846Case #433: 0.994839Case #434: 0.000000Case #435: 1.000000Case #436: 0.954343Case #437: 0.997428Case #438: 1.000000Case #439: 0.838735Case #440: 1.000000Case #441: 1.000000Case #442: 1.000000Case #443: 1.000000Case #444: 0.999999Case #445: 0.000000Case #446: 1.000000Case #447: 1.000000Case #448: 1.000000Case #449: 1.000000Case #450: 0.948799Case #451: 1.000000Case #452: 1.000000Case #453: 1.000000Case #454: 0.831844Case #455: 0.634878Case #456: 0.999998Case #457: 0.999961Case #458: 0.952555Case #459: 1.000000Case #460: 1.000000Case #461: 0.973219Case #462: 0.999862Case #463: 1.000000Case #464: 1.000000Case #465: 0.000241Case #466: 1.000000Case #467: 0.957931Case #468: 1.000000Case #469: 0.999936Case #470: 0.999941Case #471: 0.999228Case #472: 0.006093Case #473: 0.000000Case #474: 1.000000Case #475: 0.999989Case #476: 0.999994Case #477: 0.999423Case #478: 0.950500Case #479: 1.000000Case #480: 1.000000Case #481: 0.860379Case #482: 1.000000Case #483: 1.000000Case #484: 1.000000Case #485: 1.000000Case #486: 1.000000Case #487: 0.999321Case #488: 0.999864Case #489: 1.000000Case #490: 0.956577Case #491: 0.999999Case #492: 1.000000Case #493: 0.825293Case #494: 0.993789Case #495: 0.980867Case #496: 0.976466Case #497: 0.996000Case #498: 0.947491Case #499: 0.999642Case #500: 0.999533Case #501: 1.000000Case #502: 0.999996Case #503: 0.994600Case #504: 1.000000Case #505: 1.000000Case #506: 1.000000Case #507: 1.000000Case #508: 0.197537Case #509: 1.000000Case #510: 0.999999Case #511: 1.000000Case #512: 1.000000Case #513: 1.000000Case #514: 1.000000Case #515: 1.000000Case #516: 1.000000Case #517: 0.999957Case #518: 0.999975Case #519: 0.001786Case #520: 1.000000Case #521: 0.904514Case #522: 1.000000Case #523: 0.925228Case #524: 1.000000Case #525: 1.000000Case #526: 0.999992Case #527: 0.999999Case #528: 1.000000Case #529: 1.000000Case #530: 0.550772Case #531: 1.000000Case #532: 0.999257Case #533: 1.000000Case #534: 0.998267Case #535: 0.999997Case #536: 1.000000Case #537: 0.421590Case #538: 0.999994Case #539: 1.000000Case #540: 1.000000Case #541: 1.000000Case #542: 0.999701Case #543: 1.000000Case #544: 0.094492Case #545: 0.993744Case #546: 1.000000Case #547: 0.549768Case #548: 0.999999Case #549: 0.999994Case #550: 1.000000Case #551: 1.000000Case #552: 0.991712Case #553: 0.970317Case #554: 1.000000Case #555: 0.999944Case #556: 0.993738Case #557: 1.000000Case #558: 1.000000Case #559: 1.000000Case #560: 0.991401Case #561: 1.000000Case #562: 1.000000Case #563: 1.000000Case #564: 1.000000Case #565: 0.656997Case #566: 1.000000Case #567: 1.000000Case #568: 1.000000Case #569: 1.000000Case #570: 1.000000Case #571: 0.500000Case #572: 0.999999Case #573: 0.106837Case #574: 1.000000Case #575: 1.000000Case #576: 0.998962Case #577: 1.000000Case #578: 1.000000Case #579: 1.000000Case #580: 1.000000Case #581: 1.000000Case #582: 1.000000Case #583: 0.999947Case #584: 0.999832Case #585: 1.000000Case #586: 1.000000Case #587: 1.000000Case #588: 1.000000Case #589: 1.000000Case #590: 1.000000Case #591: 1.000000Case #592: 1.000000Case #593: 1.000000Case #594: 1.000000Case #595: 0.999828Case #596: 1.000000Case #597: 1.000000Case #598: 0.997420Case #599: 0.999998Case #600: 0.999997Case #601: 1.000000Case #602: 0.000000Case #603: 1.000000Case #604: 0.252240Case #605: 1.000000Case #606: 0.999772Case #607: 0.999969Case #608: 1.000000Case #609: 1.000000Case #610: 0.999999Case #611: 0.999652Case #612: 0.748500Case #613: 0.999145Case #614: 1.000000Case #615: 1.000000Case #616: 1.000000Case #617: 1.000000Case #618: 0.991998Case #619: 0.999999Case #620: 1.000000Case #621: 1.000000Case #622: 1.000000Case #623: 0.784050Case #624: 0.999705Case #625: 1.000000Case #626: 1.000000Case #627: 1.000000Case #628: 0.997307Case #629: 1.000000Case #630: 1.000000Case #631: 0.940425Case #632: 1.000000Case #633: 1.000000Case #634: 0.999997Case #635: 0.999991Case #636: 0.999984Case #637: 1.000000Case #638: 0.997897Case #639: 1.000000Case #640: 0.000037Case #641: 0.897122Case #642: 1.000000Case #643: 0.999226Case #644: 0.999847Case #645: 1.000000Case #646: 1.000000Case #647: 1.000000Case #648: 0.652248Case #649: 1.000000Case #650: 0.999387Case #651: 1.000000Case #652: 1.000000Case #653: 1.000000Case #654: 1.000000Case #655: 1.000000Case #656: 0.998406Case #657: 1.000000Case #658: 0.000001Case #659: 0.834181Case #660: 0.999994Case #661: 0.999999Case #662: 1.000000Case #663: 1.000000Case #664: 0.000000Case #665: 0.999952Case #666: 1.000000Case #667: 0.996598Case #668: 0.962543Case #669: 0.999999Case #670: 0.996000Case #671: 0.000000Case #672: 0.000000Case #673: 0.671875Case #674: 0.400428Case #675: 0.031817Case #676: 0.986972Case #677: 1.000000Case #678: 0.091139Case #679: 0.999940Case #680: 0.999992Case #681: 0.020625Case #682: 0.887913Case #683: 1.000000Case #684: 0.999801Case #685: 0.999999Case #686: 1.000000Case #687: 1.000000Case #688: 0.977943Case #689: 1.000000Case #690: 0.955590Case #691: 1.000000Case #692: 0.969375Case #693: 1.000000Case #694: 0.947137Case #695: 0.999651Case #696: 0.018114Case #697: 0.891188Case #698: 1.000000Case #699: 1.000000Case #700: 1.000000Case #701: 1.000000Case #702: 1.000000Case #703: 1.000000Case #704: 1.000000Case #705: 1.000000Case #706: 0.996338Case #707: 0.500000Case #708: 0.999790Case #709: 1.000000Case #710: 1.000000Case #711: 0.987400Case #712: 1.000000Case #713: 0.999994Case #714: 1.000000Case #715: 1.000000Case #716: 1.000000Case #717: 1.000000Case #718: 0.990784Case #719: 0.000000Case #720: 0.966406Case #721: 0.998863Case #722: 0.982063Case #723: 1.000000Case #724: 0.000129Case #725: 0.983815Case #726: 1.000000Case #727: 0.923396Case #728: 1.000000Case #729: 0.892819Case #730: 0.998356Case #731: 0.983354Case #732: 1.000000Case #733: 1.000000Case #734: 1.000000Case #735: 0.999999Case #736: 0.999990Case #737: 1.000000Case #738: 1.000000Case #739: 0.994729Case #740: 1.000000Case #741: 0.999984Case #742: 0.729515Case #743: 0.440218Case #744: 0.993481Case #745: 1.000000Case #746: 0.999866Case #747: 0.988426Case #748: 0.999943Case #749: 1.000000Case #750: 1.000000Case #751: 1.000000Case #752: 1.000000Case #753: 0.977223Case #754: 0.995465Case #755: 0.999985Case #756: 0.999999Case #757: 1.000000Case #758: 1.000000Case #759: 1.000000Case #760: 0.999999Case #761: 1.000000Case #762: 1.000000Case #763: 1.000000Case #764: 0.979448Case #765: 1.000000Case #766: 0.999875Case #767: 0.989874Case #768: 0.996625Case #769: 1.000000Case #770: 0.999843Case #771: 1.000000Case #772: 0.000000Case #773: 0.180813Case #774: 0.000001Case #775: 0.997888Case #776: 0.624682Case #777: 1.000000Case #778: 1.000000Case #779: 1.000000Case #780: 0.998577Case #781: 0.999820Case #782: 1.000000Case #783: 0.837963Case #784: 1.000000Case #785: 1.000000Case #786: 0.516627Case #787: 0.999857Case #788: 1.000000Case #789: 0.999995Case #790: 0.715006Case #791: 0.997625Case #792: 0.999998Case #793: 0.999900Case #794: 0.997731Case #795: 1.000000Case #796: 0.999828Case #797: 1.000000Case #798: 1.000000Case #799: 0.999947Case #800: 0.873924Case #801: 1.000000Case #802: 0.554918Case #803: 0.995994Case #804: 1.000000Case #805: 0.999887Case #806: 1.000000Case #807: 1.000000Case #808: 1.000000Case #809: 0.854167Case #810: 0.000000Case #811: 0.954838Case #812: 1.000000Case #813: 0.999638Case #814: 0.999421Case #815: 0.805556Case #816: 1.000000Case #817: 1.000000Case #818: 1.000000Case #819: 0.984375Case #820: 0.993738Case #821: 0.999996Case #822: 1.000000Case #823: 0.999747Case #824: 1.000000Case #825: 1.000000Case #826: 1.000000Case #827: 0.999970Case #828: 0.809758Case #829: 0.999883Case #830: 0.999929Case #831: 0.015456Case #832: 0.995574Case #833: 0.999996Case #834: 1.000000Case #835: 1.000000Case #836: 0.999713Case #837: 0.999992Case #838: 1.000000Case #839: 1.000000Case #840: 0.999964Case #841: 0.999995Case #842: 0.691689Case #843: 0.944812Case #844: 0.999152Case #845: 0.999849Case #846: 1.000000Case #847: 1.000000Case #848: 1.000000Case #849: 0.145294Case #850: 0.988499Case #851: 1.000000Case #852: 1.000000Case #853: 0.560820Case #854: 1.000000Case #855: 1.000000Case #856: 1.000000Case #857: 1.000000Case #858: 0.992171Case #859: 0.996935Case #860: 1.000000Case #861: 0.999976Case #862: 0.000017Case #863: 0.389099Case #864: 1.000000Case #865: 1.000000Case #866: 1.000000Case #867: 0.000025Case #868: 1.000000Case #869: 0.005815Case #870: 1.000000Case #871: 0.965679Case #872: 0.038464Case #873: 1.000000Case #874: 1.000000Case #875: 1.000000Case #876: 1.000000Case #877: 1.000000Case #878: 0.133758Case #879: 0.119873Case #880: 0.999745Case #881: 0.405820Case #882: 0.000027Case #883: 0.183825Case #884: 1.000000Case #885: 1.000000Case #886: 1.000000Case #887: 0.999996Case #888: 1.000000Case #889: 0.999946Case #890: 0.999999Case #891: 0.963797Case #892: 1.000000Case #893: 1.000000Case #894: 0.011156Case #895: 0.999657Case #896: 1.000000Case #897: 0.999995Case #898: 1.000000Case #899: 0.853233Case #900: 0.999996Case #901: 0.999892Case #902: 0.999979Case #903: 0.001876Case #904: 0.999999Case #905: 0.998892Case #906: 1.000000Case #907: 0.999985Case #908: 1.000000Case #909: 0.994412Case #910: 1.000000Case #911: 1.000000Case #912: 0.972140Case #913: 1.000000Case #914: 0.027345Case #915: 0.999659Case #916: 0.000000Case #917: 0.999985Case #918: 0.775873Case #919: 0.999950Case #920: 0.001476Case #921: 1.000000Case #922: 1.000000Case #923: 1.000000Case #924: 1.000000Case #925: 0.668002Case #926: 0.997256Case #927: 0.021000Case #928: 0.396072Case #929: 0.999657Case #930: 0.533500Case #931: 0.997757Case #932: 0.721234Case #933: 1.000000Case #934: 0.500000Case #935: 1.000000Case #936: 1.000000Case #937: 1.000000Case #938: 1.000000Case #939: 1.000000Case #940: 0.007185Case #941: 0.999990Case #942: 0.999922Case #943: 0.999921Case #944: 1.000000Case #945: 0.999891Case #946: 1.000000Case #947: 1.000000Case #948: 1.000000Case #949: 1.000000Case #950: 1.000000Case #951: 1.000000Case #952: 1.000000Case #953: 0.994617Case #954: 0.999306Case #955: 1.000000Case #956: 0.998994Case #957: 0.059304Case #958: 1.000000Case #959: 0.044804Case #960: 0.703043Case #961: 0.999987Case #962: 0.069496Case #963: 0.998912Case #964: 1.000000Case #965: 0.617197Case #966: 1.000000Case #967: 0.999674Case #968: 1.000000Case #969: 0.999999Case #970: 0.949796Case #971: 0.996348Case #972: 0.994083Case #973: 0.999081Case #974: 0.500000Case #975: 0.458762Case #976: 0.853630Case #977: 1.000000Case #978: 1.000000Case #979: 0.999991Case #980: 1.000000Case #981: 0.999548Case #982: 1.000000Case #983: 0.979216Case #984: 1.000000Case #985: 0.999999Case #986: 0.500000Case #987: 1.000000Case #988: 1.000000Case #989: 1.000000Case #990: 1.000000Case #991: 1.000000Case #992: 1.000000Case #993: 0.006777Case #994: 1.000000Case #995: 1.000000Case #996: 1.000000Case #997: 0.842197Case #998: 0.986395Case #999: 0.586136Case #1000: 1.000000Case #1001: 1.000000Case #1002: 0.999441Case #1003: 1.000000Case #1004: 0.999680Case #1005: 1.000000Case #1006: 0.000000Case #1007: 0.948428Case #1008: 0.000188Case #1009: 1.000000Case #1010: 0.999320Case #1011: 1.000000Case #1012: 1.000000Case #1013: 0.990339Case #1014: 1.000000Case #1015: 0.959671Case #1016: 1.000000Case #1017: 0.999991Case #1018: 0.996930Case #1019: 0.995992Case #1020: 0.000000Case #1021: 0.966495Case #1022: 0.590300Case #1023: 1.000000Case #1024: 1.000000Case #1025: 0.999751Case #1026: 0.397995Case #1027: 1.000000Case #1028: 1.000000Case #1029: 0.701739Case #1030: 1.000000Case #1031: 0.000000Case #1032: 1.000000Case #1033: 1.000000Case #1034: 1.000000Case #1035: 0.011727Case #1036: 1.000000Case #1037: 1.000000Case #1038: 0.461673Case #1039: 1.000000Case #1040: 0.500000Case #1041: 0.999995Case #1042: 0.396072Case #1043: 0.995849Case #1044: 1.000000Case #1045: 1.000000Case #1046: 1.000000Case #1047: 1.000000Case #1048: 0.999967Case #1049: 0.998822Case #1050: 1.000000Case #1051: 1.000000Case #1052: 1.000000Case #1053: 0.998011Case #1054: 1.000000Case #1055: 0.989150Case #1056: 1.000000Case #1057: 0.934659Case #1058: 0.000002Case #1059: 0.999756Case #1060: 1.000000Case #1061: 0.999987Case #1062: 1.000000Case #1063: 0.995739Case #1064: 0.003376Case #1065: 0.958580Case #1066: 0.874894Case #1067: 1.000000Case #1068: 0.999999Case #1069: 1.000000Case #1070: 0.999934Case #1071: 0.058389Case #1072: 0.999982Case #1073: 0.368866Case #1074: 0.999364Case #1075: 1.000000Case #1076: 1.000000Case #1077: 0.317119Case #1078: 1.000000Case #1079: 0.000000Case #1080: 1.000000Case #1081: 0.988423Case #1082: 1.000000Case #1083: 0.042221Case #1084: 0.870447Case #1085: 0.999999Case #1086: 1.000000Case #1087: 0.999959Case #1088: 0.997430Case #1089: 0.768588Case #1090: 0.765389Case #1091: 1.000000Case #1092: 0.999705Case #1093: 0.443107Case #1094: 0.999751Case #1095: 0.998363Case #1096: 0.000000Case #1097: 0.866242Case #1098: 1.000000Case #1099: 1.000000Case #1100: 0.604894Case #1101: 0.994675Case #1102: 0.703043Case #1103: 0.089929Case #1104: 1.000000Case #1105: 0.976114Case #1106: 0.982381Case #1107: 0.999782Case #1108: 0.952998Case #1109: 0.997971Case #1110: 1.000000Case #1111: 0.001006Case #1112: 1.000000Case #1113: 0.999918Case #1114: 0.211341Case #1115: 0.687500Case #1116: 0.440818Case #1117: 1.000000Case #1118: 1.000000Case #1119: 1.000000Case #1120: 1.000000Case #1121: 1.000000Case #1122: 0.246431Case #1123: 1.000000Case #1124: 1.000000Case #1125: 0.998524Case #1126: 0.636015Case #1127: 0.999851Case #1128: 1.000000Case #1129: 1.000000Case #1130: 0.999161Case #1131: 0.999996Case #1132: 0.999999Case #1133: 1.000000Case #1134: 0.995728Case #1135: 1.000000Case #1136: 0.188406Case #1137: 1.000000Case #1138: 1.000000Case #1139: 0.175249Case #1140: 0.999999Case #1141: 0.999680Case #1142: 0.999998Case #1143: 1.000000Case #1144: 1.000000Case #1145: 0.353281Case #1146: 0.005815Case #1147: 0.999829Case #1148: 1.000000Case #1149: 0.000001Case #1150: 1.000000Case #1151: 1.000000Case #1152: 0.776997Case #1153: 0.999990Case #1154: 1.000000Case #1155: 0.998877Case #1156: 0.072329Case #1157: 0.999990Case #1158: 0.999925Case #1159: 0.000003Case #1160: 1.000000Case #1161: 0.999999Case #1162: 1.000000Case #1163: 1.000000Case #1164: 1.000000Case #1165: 1.000000Case #1166: 0.979097Case #1167: 1.000000Case #1168: 0.164063Case #1169: 0.944783Case #1170: 0.041982Case #1171: 0.999997Case #1172: 0.963123Case #1173: 1.000000Case #1174: 1.000000Case #1175: 1.000000Case #1176: 0.873070Case #1177: 0.999100Case #1178: 0.999999Case #1179: 1.000000Case #1180: 0.253346Case #1181: 0.983864Case #1182: 1.000000Case #1183: 1.000000Case #1184: 1.000000Case #1185: 0.089063Case #1186: 1.000000Case #1187: 0.999966Case #1188: 0.999999Case #1189: 1.000000Case #1190: 1.000000Case #1191: 0.999993Case #1192: 0.999979Case #1193: 0.999811Case #1194: 1.000000Case #1195: 0.999999Case #1196: 1.000000Case #1197: 1.000000Case #1198: 0.210624Case #1199: 1.000000Case #1200: 0.999998Case #1201: 1.000000Case #1202: 1.000000Case #1203: 1.000000Case #1204: 1.000000Case #1205: 0.174707Case #1206: 1.000000Case #1207: 0.999988Case #1208: 1.000000Case #1209: 1.000000Case #1210: 0.804583Case #1211: 1.000000Case #1212: 1.000000Case #1213: 0.000841Case #1214: 0.035352Case #1215: 1.000000Case #1216: 0.992765Case #1217: 1.000000Case #1218: 0.089594Case #1219: 1.000000Case #1220: 0.092488Case #1221: 1.000000Case #1222: 0.004888Case #1223: 1.000000Case #1224: 1.000000Case #1225: 1.000000Case #1226: 0.999921Case #1227: 1.000000Case #1228: 1.000000Case #1229: 1.000000Case #1230: 1.000000Case #1231: 0.785981Case #1232: 1.000000Case #1233: 0.267509Case #1234: 0.999234Case #1235: 1.000000Case #1236: 1.000000Case #1237: 1.000000Case #1238: 0.052890Case #1239: 1.000000Case #1240: 0.999999Case #1241: 0.999848Case #1242: 0.947137Case #1243: 1.000000Case #1244: 1.000000Case #1245: 1.000000Case #1246: 0.000000Case #1247: 1.000000Case #1248: 0.999973Case #1249: 0.883953Case #1250: 1.000000Case #1251: 1.000000Case #1252: 0.999996Case #1253: 1.000000Case #1254: 0.999789Case #1255: 0.999998Case #1256: 1.000000Case #1257: 1.000000Case #1258: 1.000000Case #1259: 0.920171Case #1260: 1.000000Case #1261: 0.999911Case #1262: 0.964065Case #1263: 1.000000Case #1264: 0.920508Case #1265: 0.999991Case #1266: 0.967772Case #1267: 1.000000Case #1268: 1.000000Case #1269: 1.000000Case #1270: 1.000000Case #1271: 0.982953Case #1272: 1.000000Case #1273: 0.000003Case #1274: 0.809617Case #1275: 0.916903Case #1276: 0.835793Case #1277: 0.999798Case #1278: 1.000000Case #1279: 0.999685Case #1280: 1.000000Case #1281: 0.984687Case #1282: 0.001164Case #1283: 0.005235Case #1284: 0.999602Case #1285: 0.999998Case #1286: 0.102358Case #1287: 0.116758Case #1288: 0.212972Case #1289: 1.000000Case #1290: 0.959167Case #1291: 1.000000Case #1292: 0.000000Case #1293: 1.000000Case #1294: 0.986633Case #1295: 0.999646Case #1296: 0.907074Case #1297: 1.000000Case #1298: 0.989150Case #1299: 0.999099Case #1300: 1.000000Case #1301: 1.000000Case #1302: 0.000000Case #1303: 1.000000Case #1304: 0.999986Case #1305: 0.996938Case #1306: 0.999685Case #1307: 1.000000Case #1308: 1.000000Case #1309: 0.000178Case #1310: 0.312773Case #1311: 1.000000Case #1312: 1.000000Case #1313: 1.000000Case #1314: 0.252274Case #1315: 1.000000Case #1316: 1.000000Case #1317: 0.999998Case #1318: 1.000000Case #1319: 0.999996Case #1320: 0.774635Case #1321: 0.971935Case #1322: 0.853367Case #1323: 1.000000Case #1324: 0.737500Case #1325: 1.000000Case #1326: 1.000000Case #1327: 0.999738Case #1328: 1.000000Case #1329: 1.000000Case #1330: 0.999964Case #1331: 0.991215Case #1332: 1.000000Case #1333: 0.964250Case #1334: 1.000000Case #1335: 1.000000Case #1336: 1.000000Case #1337: 1.000000Case #1338: 0.995136Case #1339: 0.999997Case #1340: 0.423852Case #1341: 0.999951Case #1342: 1.000000Case #1343: 0.081392Case #1344: 0.023709Case #1345: 0.000000Case #1346: 1.000000Case #1347: 1.000000Case #1348: 0.999999Case #1349: 1.000000Case #1350: 1.000000Case #1351: 0.998181Case #1352: 1.000000Case #1353: 0.000835Case #1354: 1.000000Case #1355: 0.000000Case #1356: 0.999992Case #1357: 1.000000Case #1358: 1.000000Case #1359: 1.000000Case #1360: 0.450000Case #1361: 0.440252Case #1362: 1.000000Case #1363: 0.636204Case #1364: 0.990742Case #1365: 0.999790Case #1366: 1.000000Case #1367: 0.072443Case #1368: 1.000000Case #1369: 0.992145Case #1370: 0.054298Case #1371: 1.000000Case #1372: 0.999984Case #1373: 1.000000Case #1374: 0.999683Case #1375: 1.000000Case #1376: 0.999962Case #1377: 0.412281Case #1378: 0.999998Case #1379: 0.000000Case #1380: 0.920291Case #1381: 0.977999Case #1382: 1.000000Case #1383: 0.999997Case #1384: 0.116924Case #1385: 0.999983Case #1386: 1.000000Case #1387: 0.779135Case #1388: 0.999970Case #1389: 0.671950Case #1390: 1.000000Case #1391: 1.000000Case #1392: 1.000000Case #1393: 0.988086Case #1394: 1.000000Case #1395: 1.000000Case #1396: 0.999998Case #1397: 1.000000Case #1398: 1.000000Case #1399: 1.000000Case #1400: 1.000000Case #1401: 0.002363Case #1402: 0.598913Case #1403: 0.353696Case #1404: 0.147070Case #1405: 0.973115Case #1406: 0.076547Case #1407: 0.984375Case #1408: 0.970456Case #1409: 0.463654Case #1410: 0.999668Case #1411: 1.000000Case #1412: 0.000000Case #1413: 1.000000Case #1414: 0.000000Case #1415: 0.999922Case #1416: 0.500000Case #1417: 0.000004Case #1418: 0.998962Case #1419: 0.464676Case #1420: 1.000000Case #1421: 0.568692Case #1422: 0.994782Case #1423: 0.999994Case #1424: 1.000000Case #1425: 0.998356Case #1426: 0.998638Case #1427: 0.997256Case #1428: 0.999875Case #1429: 1.000000Case #1430: 0.000001Case #1431: 1.000000Case #1432: 0.998487Case #1433: 0.000000Case #1434: 0.000000Case #1435: 0.999112Case #1436: 1.000000Case #1437: 1.000000Case #1438: 0.999996Case #1439: 0.000000Case #1440: 0.999222Case #1441: 1.000000Case #1442: 1.000000Case #1443: 1.000000Case #1444: 0.999971Case #1445: 0.999255Case #1446: 0.999996Case #1447: 0.999940Case #1448: 0.997589Case #1449: 0.996939Case #1450: 0.791347Case #1451: 0.999990Case #1452: 1.000000Case #1453: 1.000000Case #1454: 1.000000Case #1455: 0.999233Case #1456: 1.000000Case #1457: 0.998793Case #1458: 1.000000Case #1459: 1.000000Case #1460: 0.095589Case #1461: 1.000000Case #1462: 0.902006Case #1463: 1.000000Case #1464: 1.000000Case #1465: 1.000000Case #1466: 0.999981Case #1467: 0.999918Case #1468: 0.981322Case #1469: 1.000000Case #1470: 1.000000Case #1471: 0.634825Case #1472: 0.982212Case #1473: 1.000000Case #1474: 1.000000Case #1475: 0.999951Case #1476: 1.000000Case #1477: 1.000000Case #1478: 0.873984Case #1479: 0.000180Case #1480: 1.000000Case #1481: 1.000000Case #1482: 1.000000Case #1483: 0.998101Case #1484: 1.000000Case #1485: 0.988830Case #1486: 1.000000Case #1487: 0.037500Case #1488: 1.000000Case #1489: 1.000000Case #1490: 1.000000Case #1491: 0.999914Case #1492: 1.000000Case #1493: 1.000000Case #1494: 0.999979Case #1495: 1.000000Case #1496: 1.000000Case #1497: 0.999991Case #1498: 0.563108Case #1499: 0.999994Case #1500: 1.000000Case #1501: 0.476981Case #1502: 1.000000Case #1503: 0.005735Case #1504: 1.000000Case #1505: 0.000000Case #1506: 1.000000Case #1507: 0.930931Case #1508: 0.999998Case #1509: 0.679628Case #1510: 1.000000Case #1511: 1.000000Case #1512: 0.866161Case #1513: 1.000000Case #1514: 0.999991Case #1515: 0.999991Case #1516: 1.000000Case #1517: 1.000000Case #1518: 1.000000Case #1519: 1.000000Case #1520: 0.999999Case #1521: 1.000000Case #1522: 1.000000Case #1523: 0.000000Case #1524: 1.000000Case #1525: 1.000000Case #1526: 0.999968Case #1527: 1.000000Case #1528: 0.999998Case #1529: 1.000000Case #1530: 0.000001Case #1531: 0.996071Case #1532: 1.000000Case #1533: 1.000000Case #1534: 1.000000Case #1535: 0.816175Case #1536: 0.999886Case #1537: 0.716834Case #1538: 1.000000Case #1539: 0.184299Case #1540: 1.000000Case #1541: 1.000000Case #1542: 0.920012Case #1543: 1.000000Case #1544: 0.999993Case #1545: 0.831631Case #1546: 0.999900Case #1547: 0.997964Case #1548: 1.000000Case #1549: 1.000000Case #1550: 1.000000Case #1551: 0.999985Case #1552: 0.999949Case #1553: 1.000000Case #1554: 1.000000Case #1555: 0.925622Case #1556: 1.000000Case #1557: 1.000000Case #1558: 1.000000Case #1559: 1.000000Case #1560: 1.000000Case #1561: 1.000000Case #1562: 0.999374Case #1563: 1.000000Case #1564: 1.000000Case #1565: 1.000000Case #1566: 1.000000Case #1567: 1.000000Case #1568: 0.121866Case #1569: 0.999998Case #1570: 1.000000Case #1571: 0.993789Case #1572: 0.998047Case #1573: 0.000154Case #1574: 1.000000Case #1575: 0.855001Case #1576: 1.000000Case #1577: 0.997413Case #1578: 0.729662Case #1579: 0.000001Case #1580: 1.000000Case #1581: 0.954343Case #1582: 0.990934Case #1583: 1.000000Case #1584: 1.000000Case #1585: 1.000000Case #1586: 1.000000Case #1587: 1.000000Case #1588: 0.999997Case #1589: 0.999869Case #1590: 1.000000Case #1591: 1.000000Case #1592: 0.998038Case #1593: 0.990567Case #1594: 1.000000Case #1595: 1.000000Case #1596: 1.000000Case #1597: 1.000000Case #1598: 0.033003Case #1599: 1.000000Case #1600: 1.000000Case #1601: 0.999993Case #1602: 1.000000Case #1603: 0.999999Case #1604: 0.000000Case #1605: 1.000000Case #1606: 0.998577Case #1607: 1.000000Case #1608: 0.999677Case #1609: 1.000000Case #1610: 0.002888Case #1611: 1.000000Case #1612: 1.000000Case #1613: 0.978300Case #1614: 0.999936Case #1615: 1.000000Case #1616: 0.998795Case #1617: 1.000000Case #1618: 1.000000Case #1619: 0.999668Case #1620: 1.000000Case #1621: 0.993367Case #1622: 0.071975Case #1623: 1.000000Case #1624: 1.000000Case #1625: 0.662056Case #1626: 0.000154Case #1627: 1.000000Case #1628: 0.424927Case #1629: 0.838245Case #1630: 1.000000Case #1631: 1.000000Case #1632: 1.000000Case #1633: 1.000000Case #1634: 0.999909Case #1635: 0.999939Case #1636: 1.000000Case #1637: 1.000000Case #1638: 0.257184Case #1639: 1.000000Case #1640: 1.000000Case #1641: 0.992707Case #1642: 0.000000Case #1643: 0.975273Case #1644: 0.999999Case #1645: 0.913877Case #1646: 1.000000Case #1647: 1.000000Case #1648: 1.000000Case #1649: 0.880595Case #1650: 0.999998Case #1651: 0.000013Case #1652: 0.997420Case #1653: 0.999994Case #1654: 1.000000Case #1655: 0.977525Case #1656: 1.000000Case #1657: 0.602005Case #1658: 0.995116Case #1659: 0.129553Case #1660: 0.992040Case #1661: 0.993924Case #1662: 1.000000Case #1663: 1.000000Case #1664: 0.970999Case #1665: 1.000000Case #1666: 1.000000Case #1667: 1.000000Case #1668: 1.000000Case #1669: 1.000000Case #1670: 0.999898Case #1671: 0.000095Case #1672: 0.424927Case #1673: 1.000000Case #1674: 0.999381Case #1675: 0.999997Case #1676: 0.999132Case #1677: 0.978191Case #1678: 0.999988Case #1679: 1.000000Case #1680: 0.874485Case #1681: 1.000000Case #1682: 1.000000Case #1683: 0.559748Case #1684: 0.990629Case #1685: 1.000000Case #1686: 0.541667Case #1687: 0.968181Case #1688: 0.474317Case #1689: 0.417951Case #1690: 0.983500Case #1691: 0.893494Case #1692: 0.997180Case #1693: 1.000000Case #1694: 1.000000Case #1695: 1.000000Case #1696: 1.000000Case #1697: 1.000000Case #1698: 1.000000Case #1699: 1.000000Case #1700: 1.000000Case #1701: 0.011433Case #1702: 0.757465Case #1703: 1.000000Case #1704: 1.000000Case #1705: 1.000000Case #1706: 1.000000Case #1707: 0.998262Case #1708: 0.967176Case #1709: 0.999988Case #1710: 0.999985Case #1711: 1.000000Case #1712: 1.000000Case #1713: 0.885454Case #1714: 1.000000Case #1715: 0.999998Case #1716: 1.000000Case #1717: 1.000000Case #1718: 0.999994Case #1719: 0.222021Case #1720: 0.023616Case #1721: 0.999998Case #1722: 0.000000Case #1723: 1.000000Case #1724: 1.000000Case #1725: 0.998214Case #1726: 1.000000Case #1727: 1.000000Case #1728: 1.000000Case #1729: 1.000000Case #1730: 0.990407Case #1731: 0.999740Case #1732: 1.000000Case #1733: 0.003683Case #1734: 0.952555Case #1735: 0.999505Case #1736: 0.983068Case #1737: 0.999973Case #1738: 0.968832Case #1739: 0.127333Case #1740: 0.990296Case #1741: 1.000000Case #1742: 0.804083Case #1743: 0.999984Case #1744: 1.000000Case #1745: 0.911458Case #1746: 1.000000Case #1747: 1.000000Case #1748: 0.999902Case #1749: 1.000000Case #1750: 0.752856Case #1751: 1.000000Case #1752: 0.023261Case #1753: 0.999995Case #1754: 0.999551Case #1755: 1.000000Case #1756: 1.000000Case #1757: 1.000000Case #1758: 1.000000Case #1759: 1.000000Case #1760: 1.000000Case #1761: 0.999994Case #1762: 1.000000Case #1763: 1.000000Case #1764: 0.999985Case #1765: 1.000000Case #1766: 0.999998Case #1767: 0.933512Case #1768: 1.000000Case #1769: 1.000000Case #1770: 1.000000Case #1771: 1.000000Case #1772: 1.000000Case #1773: 1.000000Case #1774: 0.999620Case #1775: 1.000000Case #1776: 1.000000Case #1777: 0.457337Case #1778: 0.104180Case #1779: 0.999965Case #1780: 1.000000Case #1781: 1.000000Case #1782: 1.000000Case #1783: 0.999983Case #1784: 0.974867Case #1785: 1.000000Case #1786: 0.894332Case #1787: 0.999997Case #1788: 1.000000Case #1789: 1.000000Case #1790: 1.000000Case #1791: 1.000000Case #1792: 0.992729Case #1793: 1.000000Case #1794: 1.000000Case #1795: 1.000000Case #1796: 0.999988Case #1797: 0.999991Case #1798: 0.999987Case #1799: 0.860031Case #1800: 1.000000Case #1801: 0.440218Case #1802: 1.000000Case #1803: 0.999997Case #1804: 1.000000Case #1805: 1.000000Case #1806: 0.853630Case #1807: 1.000000Case #1808: 0.500000Case #1809: 1.000000Case #1810: 1.000000Case #1811: 0.000000Case #1812: 1.000000Case #1813: 1.000000Case #1814: 1.000000Case #1815: 1.000000Case #1816: 1.000000Case #1817: 0.000000Case #1818: 0.000000Case #1819: 1.000000Case #1820: 1.000000Case #1821: 0.999976Case #1822: 1.000000Case #1823: 1.000000Case #1824: 0.873145Case #1825: 0.944783Case #1826: 1.000000Case #1827: 1.000000Case #1828: 1.000000Case #1829: 1.000000Case #1830: 1.000000Case #1831: 0.999981Case #1832: 1.000000Case #1833: 1.000000Case #1834: 0.999997Case #1835: 1.000000Case #1836: 1.000000Case #1837: 0.873145Case #1838: 0.910071Case #1839: 0.070939Case #1840: 1.000000Case #1841: 0.856304Case #1842: 0.994938Case #1843: 0.859409Case #1844: 1.000000Case #1845: 1.000000Case #1846: 1.000000Case #1847: 0.999497Case #1848: 1.000000Case #1849: 1.000000Case #1850: 0.999933Case #1851: 0.999971Case #1852: 1.000000Case #1853: 0.997623Case #1854: 0.999914Case #1855: 1.000000Case #1856: 1.000000Case #1857: 1.000000Case #1858: 0.999991Case #1859: 0.574987Case #1860: 0.999982Case #1861: 0.996997Case #1862: 0.999998Case #1863: 1.000000Case #1864: 1.000000Case #1865: 1.000000Case #1866: 1.000000Case #1867: 0.999598Case #1868: 1.000000Case #1869: 1.000000Case #1870: 0.999997Case #1871: 0.890627Case #1872: 0.000000Case #1873: 0.000901Case #1874: 1.000000Case #1875: 1.000000Case #1876: 1.000000Case #1877: 1.000000Case #1878: 1.000000Case #1879: 0.973516Case #1880: 0.515743Case #1881: 0.676836Case #1882: 1.000000Case #1883: 1.000000Case #1884: 1.000000Case #1885: 1.000000Case #1886: 0.999998Case #1887: 1.000000Case #1888: 1.000000Case #1889: 1.000000Case #1890: 1.000000Case #1891: 0.988410Case #1892: 0.446420Case #1893: 1.000000Case #1894: 1.000000Case #1895: 0.999642Case #1896: 0.730071Case #1897: 0.999217Case #1898: 1.000000Case #1899: 1.000000Case #1900: 0.993003Case #1901: 1.000000Case #1902: 1.000000Case #1903: 1.000000Case #1904: 1.000000Case #1905: 0.988465Case #1906: 0.999979Case #1907: 0.737500Case #1908: 1.000000Case #1909: 1.000000Case #1910: 1.000000Case #1911: 1.000000Case #1912: 0.991429Case #1913: 1.000000Case #1914: 1.000000Case #1915: 1.000000Case #1916: 1.000000Case #1917: 1.000000Case #1918: 0.999950Case #1919: 0.933566Case #1920: 0.000000Case #1921: 0.999738Case #1922: 0.791106Case #1923: 1.000000Case #1924: 0.992815Case #1925: 0.000086Case #1926: 1.000000Case #1927: 1.000000Case #1928: 1.000000Case #1929: 0.710478Case #1930: 1.000000Case #1931: 1.000000Case #1932: 0.999985Case #1933: 1.000000Case #1934: 0.987706Case #1935: 0.994675Case #1936: 1.000000Case #1937: 0.990629Case #1938: 1.000000Case #1939: 0.971769Case #1940: 0.999940Case #1941: 0.919434Case #1942: 0.999955Case #1943: 1.000000Case #1944: 0.999984Case #1945: 0.999531Case #1946: 0.190454Case #1947: 1.000000Case #1948: 1.000000Case #1949: 1.000000Case #1950: 0.000000Case #1951: 0.703089Case #1952: 0.086650Case #1953: 0.639535Case #1954: 0.999998Case #1955: 0.992524Case #1956: 1.000000Case #1957: 0.967070Case #1958: 0.998953Case #1959: 0.997100Case #1960: 0.277778Case #1961: 0.834441Case #1962: 0.014453Case #1963: 0.477336Case #1964: 1.000000Case #1965: 0.948508Case #1966: 0.977958Case #1967: 0.995917Case #1968: 0.180315Case #1969: 0.810528Case #1970: 1.000000Case #1971: 1.000000Case #1972: 1.000000Case #1973: 1.000000Case #1974: 1.000000Case #1975: 1.000000Case #1976: 0.999659Case #1977: 1.000000Case #1978: 0.994542Case #1979: 0.999958Case #1980: 1.000000Case #1981: 0.999997Case #1982: 1.000000Case #1983: 1.000000Case #1984: 0.999794Case #1985: 0.999684Case #1986: 1.000000Case #1987: 0.317536Case #1988: 0.999875Case #1989: 0.999438Case #1990: 1.000000Case #1991: 0.999997Case #1992: 0.805690Case #1993: 0.999991Case #1994: 0.999878Case #1995: 0.827148Case #1996: 0.809884Case #1997: 1.000000Case #1998: 0.507677Case #1999: 1.000000Case #2000: 1.000000Case #2001: 0.999999Case #2002: 1.000000Case #2003: 1.000000Case #2004: 1.000000Case #2005: 1.000000123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778<p>Wilson works for a moving company. His primary duty is to load household items into a moving truck.Wilson has a bag that he uses to move these items. He puts a bunch of items in the bag, moves themto the truck, and then drops the items off.</p>
<p>Wilson has a bit of a reputation as a lazy worker. Julie is Wilson's supervisor, and she's keen to make sure that he doesn't slack off. She wants Wilson to carry at least 50 pounds of items in his bag every time hegoes to the truck.</p>
<p>Luckily for Wilson, his bag is opaque. When he carries a bagful of items, Julie can tell how many items arein the bag (based on the height of the stack in the bag), and she can tell the weight of the top item. She can't, however,tell how much the other items in the bag weigh.She assumes that every item in the bag weighs at least as much as this top item, because surely Wilson,as lazy as he is, would at least not be so dense as to put heavier items on top of lighter ones. Alas, Julie is woefullyignorant of the extent of Wilson's lack of dedication to his duty, and this assumption is frequently incorrect.</p>
<p>Today there are <strong>N</strong> items to be moved, and Wilson, paid by the hour as he is, wants to maximize the number of trips he makes to move all of them to the truck. What is the maximum number of trips Wilson can makewithout getting berated by Julie?</p>
<p>Note that Julie is not aware of what items are to be moved today, and she is not keeping track of what Wilson has alreadymoved when she examines each bag of items. She simply assumes that each bagful contains a total weight of at least <strong>k</strong> * <strong>w</strong>where <strong>k</strong> is the number of items in the bag, and <strong>w</strong> is the weight of the top item.</p>
<h3>Input</h3>
<p>Input begins with an integer <strong>T</strong>, the number of days Wilson "works" at his job.For each day, there is first a line containing the integer <strong>N</strong>.Then there are <strong>N</strong> lines, the <strong>i</strong>th of which contains a single integer,the weight of the <strong>i</strong>th item, <strong>W<sub>i</sub></strong>.</p>
<h3>Output</h3>
<p>For the <strong>i</strong>th day, print a line containing "Case #<strong>i</strong>: " followed by the maximum numberof trips Wilson can take that day.</p>
<h3>Constraints</h3>
<p>1 ≤ <strong>T</strong> ≤ 500 <br />1 ≤ <strong>N</strong> ≤ 100 <br />1 ≤ <strong>W<sub>i</sub></strong> ≤ 100 <br /></p>
<p>On every day, it is guaranteed that the total weight of all of the items is at least 50 pounds.</p>
<h3>Explanation of Sample</h3>
<p>In the first case, Wilson can make two trips by stacking a 30-pound item on top of a 1-pound item, making the bag appear to contain 60 pounds.</p>
<p>In the second case, Wilson needs to put all the items in the bag at once and can only make one trip.</p>
<p>In the third case, one possible solution is to put the items with odd weight in the bag for the first trip, and then the items with even weight in the bag for the second trip, making sure to put the heaviest item on top.</p>12345678910111213141516171819202122232425262728293031323334353637383940414243444546// Hacker Cup 2017
// Qualification Round
// Lazy Loading
// Wesley May
import java.util.*;
public class LazyLoading
{
public static void main(String args[])
{
Scanner scan = new Scanner(System.in);
int T = scan.nextInt();
for(int ca=1;ca <= T;ca++)
{
int N = scan.nextInt();
int[] W = new int[N];
for(int i=0;i < N;i++)
W[i] = scan.nextInt();
Arrays.sort(W);
int ans = 0;
int L = 0;
int R = N-1;
while(L <= R)
{
int count = 1;
while(count * W[R] < 50)
count++;
if(count <= R - L + 1)
ans++;
L += count - 1;
R--;
}
System.out.println("Case #" + ca + ": " + ans);
}
}
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263Wilson works for a moving company. His primary duty is to load household itemsinto a moving truck. Wilson has a bag that he uses to move these items. Heputs a bunch of items in the bag, moves them to the truck, and then drops theitems off.
Wilson has a bit of a reputation as a lazy worker. Julie is Wilson'ssupervisor, and she's keen to make sure that he doesn't slack off. She wantsWilson to carry at least 50 pounds of items in his bag every time he goes tothe truck.
Luckily for Wilson, his bag is opaque. When he carries a bagful of items,Julie can tell how many items are in the bag (based on the height of the stackin the bag), and she can tell the weight of the top item. She can't, however,tell how much the other items in the bag weigh. She assumes that every item inthe bag weighs at least as much as this top item, because surely Wilson, aslazy as he is, would at least not be so dense as to put heavier items on topof lighter ones. Alas, Julie is woefully ignorant of the extent of Wilson'slack of dedication to his duty, and this assumption is frequently incorrect.
Today there are **N** items to be moved, and Wilson, paid by the hour as heis, wants to maximize the number of trips he makes to move all of them to thetruck. What is the maximum number of trips Wilson can make without gettingberated by Julie?
Note that Julie is not aware of what items are to be moved today, and she isnot keeping track of what Wilson has already moved when she examines each bagof items. She simply assumes that each bagful contains a total weight of atleast **k** * **w** where **k** is the number of items in the bag, and **w**is the weight of the top item.
### Input
Input begins with an integer **T**, the number of days Wilson "works" at hisjob. For each day, there is first a line containing the integer **N**. Thenthere are **N** lines, the **i**th of which contains a single integer, theweight of the **i**th item, **Wi**.
### Output
For the **i**th day, print a line containing "Case #**i**: " followed by themaximum number of trips Wilson can take that day.
### Constraints
1 ≤ **T** ≤ 500 1 ≤ **N** ≤ 100 1 ≤ **Wi** ≤ 100
On every day, it is guaranteed that the total weight of all of the items is atleast 50 pounds.
### Explanation of Sample
In the first case, Wilson can make two trips by stacking a 30-pound item ontop of a 1-pound item, making the bag appear to contain 60 pounds.
In the second case, Wilson needs to put all the items in the bag at once andcan only make one trip.
In the third case, one possible solution is to put the items with odd weightin the bag for the first trip, and then the items with even weight in the bagfor the second trip, making sure to put the heaviest item on top.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005Case #1: 2Case #2: 1Case #3: 2Case #4: 3Case #5: 8Case #6: 30Case #7: 39Case #8: 42Case #9: 23Case #10: 66Case #11: 16Case #12: 32Case #13: 3Case #14: 64Case #15: 6Case #16: 24Case #17: 36Case #18: 22Case #19: 41Case #20: 50Case #21: 2Case #22: 69Case #23: 63Case #24: 57Case #25: 36Case #26: 16Case #27: 26Case #28: 56Case #29: 3Case #30: 76Case #31: 12Case #32: 25Case #33: 71Case #34: 16Case #35: 5Case #36: 21Case #37: 25Case #38: 4Case #39: 22Case #40: 35Case #41: 6Case #42: 10Case #43: 26Case #44: 4Case #45: 61Case #46: 15Case #47: 6Case #48: 12Case #49: 26Case #50: 67Case #51: 23Case #52: 58Case #53: 41Case #54: 67Case #55: 20Case #56: 11Case #57: 74Case #58: 53Case #59: 43Case #60: 2Case #61: 72Case #62: 14Case #63: 34Case #64: 63Case #65: 4Case #66: 54Case #67: 53Case #68: 60Case #69: 56Case #70: 16Case #71: 9Case #72: 45Case #73: 37Case #74: 69Case #75: 23Case #76: 8Case #77: 12Case #78: 57Case #79: 62Case #80: 77Case #81: 54Case #82: 69Case #83: 48Case #84: 18Case #85: 1Case #86: 72Case #87: 46Case #88: 34Case #89: 36Case #90: 43Case #91: 21Case #92: 14Case #93: 13Case #94: 8Case #95: 43Case #96: 21Case #97: 67Case #98: 5Case #99: 24Case #100: 21Case #101: 60Case #102: 43Case #103: 1Case #104: 29Case #105: 9Case #106: 65Case #107: 57Case #108: 24Case #109: 1Case #110: 25Case #111: 30Case #112: 65Case #113: 23Case #114: 75Case #115: 40Case #116: 16Case #117: 22Case #118: 52Case #119: 11Case #120: 60Case #121: 13Case #122: 1Case #123: 55Case #124: 47Case #125: 20Case #126: 46Case #127: 45Case #128: 28Case #129: 15Case #130: 57Case #131: 50Case #132: 5Case #133: 63Case #134: 28Case #135: 33Case #136: 32Case #137: 69Case #138: 60Case #139: 11Case #140: 54Case #141: 71Case #142: 44Case #143: 72Case #144: 60Case #145: 3Case #146: 13Case #147: 16Case #148: 8Case #149: 20Case #150: 41Case #151: 60Case #152: 65Case #153: 76Case #154: 53Case #155: 51Case #156: 71Case #157: 48Case #158: 33Case #159: 41Case #160: 68Case #161: 41Case #162: 25Case #163: 60Case #164: 23Case #165: 13Case #166: 2Case #167: 35Case #168: 45Case #169: 56Case #170: 54Case #171: 48Case #172: 46Case #173: 3Case #174: 57Case #175: 4Case #176: 9Case #177: 61Case #178: 40Case #179: 9Case #180: 15Case #181: 65Case #182: 1Case #183: 16Case #184: 72Case #185: 70Case #186: 52Case #187: 1Case #188: 72Case #189: 34Case #190: 49Case #191: 54Case #192: 2Case #193: 11Case #194: 36Case #195: 51Case #196: 54Case #197: 54Case #198: 76Case #199: 30Case #200: 69Case #201: 28Case #202: 17Case #203: 58Case #204: 19Case #205: 20Case #206: 44Case #207: 68Case #208: 69Case #209: 36Case #210: 29Case #211: 29Case #212: 6Case #213: 16Case #214: 60Case #215: 66Case #216: 72Case #217: 38Case #218: 30Case #219: 54Case #220: 39Case #221: 13Case #222: 5Case #223: 11Case #224: 19Case #225: 7Case #226: 23Case #227: 7Case #228: 68Case #229: 53Case #230: 33Case #231: 65Case #232: 7Case #233: 14Case #234: 15Case #235: 69Case #236: 7Case #237: 48Case #238: 24Case #239: 23Case #240: 64Case #241: 70Case #242: 16Case #243: 27Case #244: 54Case #245: 54Case #246: 39Case #247: 22Case #248: 42Case #249: 37Case #250: 68Case #251: 23Case #252: 40Case #253: 24Case #254: 57Case #255: 55Case #256: 77Case #257: 25Case #258: 26Case #259: 38Case #260: 24Case #261: 59Case #262: 48Case #263: 14Case #264: 21Case #265: 56Case #266: 61Case #267: 8Case #268: 57Case #269: 7Case #270: 32Case #271: 29Case #272: 13Case #273: 37Case #274: 27Case #275: 47Case #276: 75Case #277: 47Case #278: 41Case #279: 12Case #280: 1Case #281: 16Case #282: 27Case #283: 73Case #284: 1Case #285: 52Case #286: 60Case #287: 65Case #288: 14Case #289: 26Case #290: 27Case #291: 52Case #292: 56Case #293: 64Case #294: 19Case #295: 54Case #296: 21Case #297: 41Case #298: 39Case #299: 10Case #300: 59Case #301: 20Case #302: 75Case #303: 74Case #304: 21Case #305: 40Case #306: 64Case #307: 74Case #308: 63Case #309: 52Case #310: 35Case #311: 61Case #312: 73Case #313: 69Case #314: 28Case #315: 24Case #316: 52Case #317: 74Case #318: 57Case #319: 53Case #320: 66Case #321: 14Case #322: 20Case #323: 63Case #324: 58Case #325: 42Case #326: 13Case #327: 25Case #328: 7Case #329: 25Case #330: 42Case #331: 17Case #332: 16Case #333: 29Case #334: 30Case #335: 25Case #336: 53Case #337: 54Case #338: 12Case #339: 57Case #340: 72Case #341: 10Case #342: 70Case #343: 3Case #344: 56Case #345: 1Case #346: 33Case #347: 38Case #348: 68Case #349: 2Case #350: 33Case #351: 17Case #352: 61Case #353: 33Case #354: 73Case #355: 66Case #356: 52Case #357: 30Case #358: 57Case #359: 31Case #360: 42Case #361: 42Case #362: 60Case #363: 18Case #364: 8Case #365: 14Case #366: 71Case #367: 55Case #368: 11Case #369: 58Case #370: 33Case #371: 62Case #372: 11Case #373: 22Case #374: 10Case #375: 18Case #376: 73Case #377: 12Case #378: 24Case #379: 13Case #380: 40Case #381: 75Case #382: 63Case #383: 47Case #384: 77Case #385: 53Case #386: 17Case #387: 66Case #388: 52Case #389: 28Case #390: 53Case #391: 20Case #392: 23Case #393: 67Case #394: 33Case #395: 28Case #396: 5Case #397: 15Case #398: 50Case #399: 23Case #400: 44Case #401: 65Case #402: 18Case #403: 55Case #404: 50Case #405: 7Case #406: 26Case #407: 47Case #408: 56Case #409: 15Case #410: 61Case #411: 68Case #412: 48Case #413: 35Case #414: 70Case #415: 76Case #416: 62Case #417: 17Case #418: 45Case #419: 3Case #420: 66Case #421: 66Case #422: 42Case #423: 57Case #424: 54Case #425: 14Case #426: 37Case #427: 6Case #428: 50Case #429: 8Case #430: 3Case #431: 23Case #432: 66Case #433: 46Case #434: 57Case #435: 43Case #436: 1Case #437: 16Case #438: 12Case #439: 52Case #440: 16Case #441: 72Case #442: 43Case #443: 9Case #444: 64Case #445: 15Case #446: 76Case #447: 4Case #448: 69Case #449: 3Case #450: 61Case #451: 68Case #452: 45Case #453: 38Case #454: 44Case #455: 29Case #456: 64Case #457: 35Case #458: 44Case #459: 70Case #460: 3Case #461: 61Case #462: 37Case #463: 70Case #464: 72Case #465: 13Case #466: 12Case #467: 69Case #468: 1Case #469: 55Case #470: 2Case #471: 3Case #472: 2Case #473: 2Case #474: 34Case #475: 63Case #476: 54Case #477: 38Case #478: 20Case #479: 68Case #480: 61Case #481: 18Case #482: 5Case #483: 66Case #484: 30Case #485: 59Case #486: 22Case #487: 69Case #488: 33Case #489: 48Case #490: 40Case #491: 3Case #492: 64Case #493: 30Case #494: 11Case #495: 36Case #496: 3Case #497: 67Case #498: 41Case #499: 72Case #500: 54Case #501: 44Case #502: 38Case #503: 15Case #504: 61Case #505: 31Case #506: 48Case #507: 63Case #508: 37Case #509: 66Case #510: 20Case #511: 16Case #512: 21Case #513: 16Case #514: 44Case #515: 43Case #516: 54Case #517: 56Case #518: 28Case #519: 60Case #520: 60Case #521: 29Case #522: 61Case #523: 65Case #524: 75Case #525: 19Case #526: 12Case #527: 55Case #528: 18Case #529: 38Case #530: 54Case #531: 58Case #532: 44Case #533: 62Case #534: 26Case #535: 42Case #536: 56Case #537: 39Case #538: 70Case #539: 50Case #540: 34Case #541: 14Case #542: 72Case #543: 60Case #544: 15Case #545: 42Case #546: 64Case #547: 76Case #548: 10Case #549: 30Case #550: 56Case #551: 59Case #552: 63Case #553: 75Case #554: 67Case #555: 3Case #556: 65Case #557: 43Case #558: 32Case #559: 38Case #560: 53Case #561: 48Case #562: 17Case #563: 22Case #564: 61Case #565: 5Case #566: 39Case #567: 57Case #568: 51Case #569: 38Case #570: 63Case #571: 14Case #572: 42Case #573: 56Case #574: 70Case #575: 40Case #576: 15Case #577: 71Case #578: 65Case #579: 73Case #580: 60Case #581: 15Case #582: 5Case #583: 20Case #584: 13Case #585: 16Case #586: 47Case #587: 61Case #588: 49Case #589: 55Case #590: 67Case #591: 7Case #592: 67Case #593: 49Case #594: 15Case #595: 39Case #596: 72Case #597: 28Case #598: 58Case #599: 6Case #600: 24Case #601: 6Case #602: 29Case #603: 50Case #604: 57Case #605: 56Case #606: 9Case #607: 48Case #608: 58Case #609: 43Case #610: 48Case #611: 23Case #612: 25Case #613: 74Case #614: 56Case #615: 27Case #616: 58Case #617: 41Case #618: 59Case #619: 24Case #620: 14Case #621: 47Case #622: 73Case #623: 75Case #624: 26Case #625: 71Case #626: 54Case #627: 49Case #628: 19Case #629: 62Case #630: 4Case #631: 57Case #632: 19Case #633: 45Case #634: 8Case #635: 6Case #636: 54Case #637: 47Case #638: 2Case #639: 66Case #640: 35Case #641: 28Case #642: 19Case #643: 46Case #644: 11Case #645: 64Case #646: 60Case #647: 31Case #648: 43Case #649: 8Case #650: 45Case #651: 29Case #652: 57Case #653: 56Case #654: 47Case #655: 59Case #656: 2Case #657: 15Case #658: 43Case #659: 23Case #660: 1Case #661: 41Case #662: 71Case #663: 10Case #664: 6Case #665: 61Case #666: 7Case #667: 73Case #668: 4Case #669: 41Case #670: 63Case #671: 43Case #672: 45Case #673: 43Case #674: 66Case #675: 14Case #676: 8Case #677: 64Case #678: 17Case #679: 4Case #680: 73Case #681: 61Case #682: 69Case #683: 36Case #684: 11Case #685: 68Case #686: 43Case #687: 15Case #688: 43Case #689: 6Case #690: 52Case #691: 30Case #692: 54Case #693: 8Case #694: 52Case #695: 19Case #696: 9Case #697: 68Case #698: 45Case #699: 2Case #700: 29Case #701: 34Case #702: 43Case #703: 71Case #704: 42Case #705: 70Case #706: 73Case #707: 54Case #708: 14Case #709: 22Case #710: 26Case #711: 66Case #712: 33Case #713: 35Case #714: 17Case #715: 37Case #716: 61Case #717: 36Case #718: 2Case #719: 8Case #720: 56Case #721: 4Case #722: 38Case #723: 48Case #724: 65Case #725: 30Case #726: 70Case #727: 59Case #728: 57Case #729: 71Case #730: 67Case #731: 57Case #732: 22Case #733: 4Case #734: 59Case #735: 65Case #736: 25Case #737: 12Case #738: 57Case #739: 9Case #740: 51Case #741: 11Case #742: 26Case #743: 67Case #744: 44Case #745: 45Case #746: 1Case #747: 23Case #748: 45Case #749: 60Case #750: 46Case #751: 16Case #752: 59Case #753: 63Case #754: 37Case #755: 29Case #756: 24Case #757: 23Case #758: 76Case #759: 45Case #760: 42Case #761: 65Case #762: 18Case #763: 12Case #764: 31Case #765: 2Case #766: 61Case #767: 10Case #768: 60Case #769: 56Case #770: 29Case #771: 50Case #772: 64Case #773: 30Case #774: 20Case #775: 47Case #776: 4Case #777: 1Case #778: 39Case #779: 28Case #780: 53Case #781: 16Case #782: 47Case #783: 43Case #784: 50Case #785: 37Case #786: 12Case #787: 43Case #788: 14Case #789: 12Case #790: 75Case #791: 55Case #792: 33Case #793: 31Case #794: 8Case #795: 62Case #796: 44Case #797: 42Case #798: 68Case #799: 37Case #800: 12Case #801: 70Case #802: 19Case #803: 62Case #804: 28Case #805: 26Case #806: 11Case #807: 32Case #808: 11Case #809: 43Case #810: 30Case #811: 38Case #812: 35Case #813: 7Case #814: 67Case #815: 20Case #816: 1Case #817: 60Case #818: 56Case #819: 26Case #820: 34Case #821: 4Case #822: 18Case #823: 61Case #824: 21Case #825: 13Case #826: 73Case #827: 56Case #828: 27Case #829: 8Case #830: 36Case #831: 24Case #832: 9Case #833: 38Case #834: 34Case #835: 43Case #836: 73Case #837: 38Case #838: 56Case #839: 29Case #840: 34Case #841: 69Case #842: 5Case #843: 21Case #844: 11Case #845: 40Case #846: 13Case #847: 66Case #848: 10Case #849: 23Case #850: 29Case #851: 51Case #852: 26Case #853: 33Case #854: 10Case #855: 32Case #856: 17Case #857: 71Case #858: 1Case #859: 35Case #860: 48Case #861: 50Case #862: 44Case #863: 63Case #864: 55Case #865: 34Case #866: 62Case #867: 61Case #868: 28Case #869: 15Case #870: 55Case #871: 55Case #872: 44Case #873: 6Case #874: 30Case #875: 61Case #876: 45Case #877: 15Case #878: 66Case #879: 19Case #880: 32Case #881: 23Case #882: 21Case #883: 69Case #884: 67Case #885: 39Case #886: 2Case #887: 48Case #888: 45Case #889: 66Case #890: 10Case #891: 40Case #892: 23Case #893: 65Case #894: 34Case #895: 26Case #896: 30Case #897: 26Case #898: 59Case #899: 67Case #900: 41Case #901: 10Case #902: 56Case #903: 19Case #904: 43Case #905: 42Case #906: 6Case #907: 9Case #908: 54Case #909: 10Case #910: 29Case #911: 32Case #912: 46Case #913: 39Case #914: 52Case #915: 33Case #916: 37Case #917: 4Case #918: 6Case #919: 5Case #920: 72Case #921: 68Case #922: 37Case #923: 74Case #924: 60Case #925: 62Case #926: 74Case #927: 14Case #928: 44Case #929: 51Case #930: 50Case #931: 42Case #932: 9Case #933: 24Case #934: 51Case #935: 26Case #936: 65Case #937: 54Case #938: 21Case #939: 25Case #940: 32Case #941: 59Case #942: 45Case #943: 23Case #944: 27Case #945: 22Case #946: 65Case #947: 20Case #948: 12Case #949: 8Case #950: 24Case #951: 34Case #952: 19Case #953: 7Case #954: 42Case #955: 26Case #956: 18Case #957: 22Case #958: 2Case #959: 46Case #960: 54Case #961: 2Case #962: 62Case #963: 45Case #964: 10Case #965: 21Case #966: 61Case #967: 71Case #968: 25Case #969: 33Case #970: 36Case #971: 55Case #972: 29Case #973: 77Case #974: 71Case #975: 60Case #976: 71Case #977: 67Case #978: 13Case #979: 5Case #980: 24Case #981: 47Case #982: 50Case #983: 17Case #984: 26Case #985: 23Case #986: 54Case #987: 38Case #988: 73Case #989: 51Case #990: 15Case #991: 50Case #992: 52Case #993: 5Case #994: 35Case #995: 55Case #996: 56Case #997: 49Case #998: 72Case #999: 31Case #1000: 13Case #1001: 32Case #1002: 12Case #1003: 67Case #1004: 21Case #1005: 31123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172<p>Some progress bars fill you with anticipation. Some are finished before you know it and make you wonder why there was a progress bar at all. </p>
<p>Some progress bars progress at a pleasant, steady rate. Some are chaotic, lurching forward and then pausing for long periods.Some seem to slow down as they go, never quite reaching 100%.</p>
<p>Some progress bars are in fact not bars at all, but circles.</p>
<p>On your screen is a progress pie, a sort of progress bar that shows its progress as a sector of a circle. Envision your screen as a square on the plane with its bottom-left corner at (0, 0), and its upper-right corner at (100, 100).Every point on the screen is either white or black.Initially, the progress is 0%, and all points on the screen are white. When the progress percentage, <strong>P</strong>, is greater than 0%, a sector of angle (<strong>P</strong>% * 360) degreesis colored black, anchored by the line segment from the center of the square to the center of the top side, and proceeding clockwise.</p>
<img src="{{PHOTO_ID:592385891651966}}" />
<p>While you wait for the progress pie to fill in, you find yourself thinking about whether certain points would be white or black at different amounts of progress.</p>
<h3>Input</h3>
<p>Input begins with an integer <strong>T</strong>, the number of points you're curious about.For each point, there is a line containing three space-separated integers, <strong>P</strong>, the amount of progress as a percentage,and <strong>X</strong> and <strong>Y</strong>, the coordinates of the point.</p>
<h3>Output</h3>
<p>For the <strong>i</strong>th point, print a line containing "Case #<strong>i</strong>: " followed by the color of the point, either"black" or "white".</p>
<h3>Constraints</h3>
<p>1 ≤ <strong>T</strong> ≤ 1,000 <br />0 ≤ <strong>P</strong>, <strong>X</strong>, <strong>Y</strong> ≤ 100 <br /></p>
<p>Whenever a point (<strong>X</strong>, <strong>Y</strong>) is queried, it's guaranteed that all points within a distance of 10<sup>-6</sup> of (<strong>X</strong>, <strong>Y</strong>) are the same color as (<strong>X</strong>, <strong>Y</strong>).</p>
<h3>Explanation of Sample</h3>
<p>In the first case all of the points are white, so the point at (55, 55) is of course white. </p>
<p>In the second case, (55, 55) is close to the filled-in sector of the circle, but it's still white. </p>
<p>In the third case, the filled-in sector of the circle now covers (55, 55), coloring it black.</p>
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620050 55 5512 55 5513 55 5599 99 9987 20 40100 1 157 28 8131 9 9781 64 7138 10 2273 60 7335 99 2263 43 2370 25 294 41 8688 45 3748 100 2765 70 1287 40 5742 13 3420 46 3943 47 3377 75 1097 48 5346 4 7350 20 9036 65 6283 53 2373 79 9670 87 3776 86 1753 5 4756 22 3861 6 2517 37 7925 69 789 48 4171 28 1121 53 481 88 8439 62 1851 26 6115 27 8541 67 730 33 6024 26 19100 91 4266 89 3017 89 7041 98 746 90 746 38 1079 100 6433 44 9659 43 8724 89 9561 63 5273 7 690 47 6882 56 9134 72 4883 45 7866 69 961 30 3293 91 5784 69 332 68 9677 89 854 1 8363 5 135 47 995 23 150 57 2767 73 4539 81 8041 97 3779 37 228 100 183 81 2175 71 8449 37 8112 7 7884 79 7768 82 8878 84 95100 47 9313 98 7438 20 3645 3 8711 69 5729 94 9531 86 2558 16 6566 19 6651 22 2158 36 2267 45 8492 67 5437 54 5233 84 6132 46 6198 41 6089 21 7356 80 498 80 8770 100 3862 17 797 62 583 40 457 56 4153 85 7374 13 745 94 2816 81 8028 9 5241 62 7513 45 52100 35 4064 96 5546 65 7361 38 3688 55 3462 48 8334 67 650 91 5815 14 8513 17 146 100 8092 7 9893 85 6644 4 2399 91 571 75 7545 39 2370 44 4671 35 2779 88 1173 32 9762 57 1368 88 2391 63 318 34 455 98 5231 83 2567 94 5347 85 344 71 9611 99 8814 81 7826 4 8541 12 9277 67 9412 8 1672 53 5733 35 3413 62 6969 62 9221 28 2146 18 8231 43 3534 26 665 77 7679 31 9493 62 8819 61 7797 10 171 45 659 75 484 47 573 94 4524 81 7723 5 3390 70 3475 23 6078 23 2560 81 2451 39 3263 90 632 43 5425 43 263 4 157 33 3696 44 1399 8 6967 12 7571 76 4866 96 6949 35 258 99 4683 77 9850 22 6248 69 6762 87 9254 7 591 83 5435 87 3168 31 6098 28 932 94 4632 74 8547 88 382 76 1585 71 331 22 646 74 1669 44 3818 66 2879 94 6029 75 8746 13 1757 27 6849 86 565 69 3260 98 2730 15 6884 24 1797 83 9999 77 448 38 2854 93 1040 5 3126 92 2785 33 6549 42 7861 12 6151 16 8316 86 48100 90 1017 24 4550 22 8661 87 4195 53 3321 81 3029 21 8937 29 6314 30 2577 88 111 73 5447 27 879 91 1149 47 7446 83 6170 67 7521 17 2285 67 9491 59 3310 87 3825 74 2297 82 9349 43 4130 94 1834 85 7352 72 1982 65 5477 18 992 93 8648 46 5865 81 7466 22 2461 9 6418 57 7375 97 3992 33 4749 34 107 55 8581 3 9410 33 3362 24 3825 23 4349 2 811 74 5349 79 1134 16 8952 36 1283 15 7849 22 1730 64 56100 45 1812 25 4523 65 8782 47 3055 98 3270 59 365 85 9792 10 7170 57 7455 36 8199 8 4735 22 386 33 7734 66 96100 27 6775 12 499 10 3835 55 638 67 4414 36 8130 60 8477 65 1618 13 1789 86 9065 88 9710 34 8139 43 2230 41 2836 67 5883 77 1551 7 312 64 9399 3 9516 86 4670 29 5523 74 8051 61 5586 15 3256 48 7586 92 8850 42 6828 14 7034 99 4013 28 4622 2 5741 58 2793 73 8231 40 4120 41 688 64 6873 6 6872 69 857 85 9164 38 2972 17 1253 80 3453 86 2358 18 3843 54 47 29 9257 98 144 80 6199 92 7397 88 9820 56 4610 22 7586 89 7598 29 7754 47 1436 17 3947 74 1450 96 5979 48 7659 83 1008 100 1369 26 2183 25 4713 63 4490 58 6641 32 8244 68 6982 89 737 13 10057 76 7080 78 6792 4 2887 63 1678 21 4367 7 9738 91 2212 72 1574 35 7816 20 6962 44 849 100 863 73 637 56 982 21 4173 100 1433 56 650 42 2457 52 3116 46 8081 45 3085 9 9861 58 6137 59 5994 73 3385 84 2134 92 250 30 7080 2 411 73 5927 5 3814 59 8321 88 4484 98 5534 68 3519 8 129 81 8514 19 2239 39 5516 15 6439 72 5794 62 1114 65 8763 53 7446 100 5672 40 8367 95 8353 77 4833 18 178 92 1755 12 2595 59 3664 70 7391 63 8542 93 8057 26 7175 9 238 58 135 8 1611 72 9286 41 922 14 7055 32 3744 52 3243 9 8452 68 791 10 2391 22 8270 72 241 69 2751 66 3378 31 4345 58 3325 47 3948 48 6982 94 5799 61 227 29 8650 45 9616 96 5441 85 3774 92 311 54 7324 1 6833 24 7838 27 520 65 9130 5 258 61 4174 29 6325 25 9728 95 8189 80 2474 9 58100 28 1075 52 7381 4 7545 12 1554 28 314 64 6019 15 3314 84 3191 74 3423 7 344 33 4237 2 4184 58 85 5 8644 27 5782 70 5678 12 4125 68 8627 69 5366 75 2528 46 5521 60 6725 93 230 86 5625 12 7493 62 10030 44 9077 46 2523 76 9681 16 8831 37 1942 4 5452 22 9713 66 10 99 4396 80 6639 68 9879 40 8375 56 530 54 484 79 6475 53 4163 97 536 69 538 88 132 94 827 68 9737 24 1734 5 8766 16 6794 75 657 34 6510 55 2768 13 87100 55 3879 67 4117 32 4433 39 7338 13 28100 89 7984 70 7533 6 2875 96 3156 6 32100 31 4767 43 2079 48 7935 29 8732 10 7567 43 1613 94 7085 96 2717 73 9419 59 9357 14 1312 72 8397 7 127 83 4765 34 2655 80 4584 48 121 26 8771 87 737 77 9666 25 1424 66 2971 8 891 96 8021 99 342 62 9036 87 635 43 3221 89 9793 28 7550 78 612 98 6218 82 4491 48 6017 2 3322 97 3187 37 3913 82 459 60 8516 97 990 48 6593 6 8428 1 3472 45 6576 23 4725 60 2016 48 3412 71 8913 68 3965 46 8917 36 7659 82 9475 30 2572 9 7791 25 1694 13 9549 97 3081 38 9684 63 816 54 8273 81 2965 48 4628 89 3062 17 1189 11 135 47 6646 60 37100 91 9570 35 426 36 6652 90 4235 55 458 2 8756 84 2954 69 7726 54 198 23 2765 77 3575 91 1344 95 9855 71 1951 34 6181 14 2939 85 3795 88 713 9 383 75 986 74 6898 96 1317 43 8298 39 27100 17 3049 11 5850 27 1334 59 5766 26 3887 5 1467 10 7746 13 2591 88 378 28 9438 18 7425 76 4872 36 2735 71 8087 57 1279 4 338 44 9129 72 8016 5 2355 84 1341 20 7118 61 1535 9 7386 25 6495 52 2175 18 1549 18 958 3 766 74 3246 71 1561 11 6180 5 560 39 4855 4 9714 98 6136 93 6342 91 581 42 5786 33 8366 15 2588 7 4083 27 4669 25 5293 8 6867 45 6385 74 6591 41 5642 67 1428 75 4578 28 1542 12 8495 20 5874 3 7239 5 8747 52 7536 98 304 90 6464 85 3090 78 1952 79 884 58 5683 39 8022 75 3894 7 8754 72 342 58 8785 85 3470 70 7244 19 753 61 8510 33 5626 63 8434 15 7141 26 2711 92 5370 35 4064 76 2893 79 3854 36 4099 60 8974 32 1668 45 581 38 4382 24 9593 94 2843 19 2652 44 1253 46 8146 54 1888 56 999 13 491 77 6375 93 576 82 9965 77 893 8 880 2 4295 29 8793 68 5567 53 1534 92 6963 47 4723 58 5817 42 421 63 8454 28 3559 30 7973 9 8599 62 7118 22 2563 38 1141 87 8015 72 451 76 2637 62 677 25 4885 73 6783 21 7125 61 6921 6 3954 6 5461 65 10081 13 3245 54 7890 69 6420 46 6313 47 8127 65 7743 48 9911 45 4711 45 8739 42 7547 1 9416 66 9620 28 9835 45 5575 97 5938 6 391 55 2082 19 8184 93 5433 20 79100 98 4135 62 3323 79 470 68 9096 95 293 19 7566 92 1264 88 260 15 6242 25 3911 83 3091 9 7742 8 5247 8 1552 71 596 57 1033 36 1116 10 499 26 6495 92 8465 91 9315 87 6745 83 9657 58 8963 39 4097 87 655 97 109 72 9537 33 8575 79 5460 38 1380 15 9573 67 7949 32 9512 59 6384 74 9957 10 2196 23 7955 47 5333 60 6867 83 2114 10 1038 96 1983 56 9784 95 4236 98 2738 31 4339 62 1956 44 5762 46 819 67 4034 98 6557 64 9220 46 2315 100 82100 66 1336 42 4476 27 1053 90 67100 64 456 23 9949 73 9713 15 9166 20 114 84 600 10 4280 74 7096 97 912 33 5755 93 1562 59 9520 73 8385 7 2155 82 5278 22 4636 61 8337 26 3332 96 3922 4 961 87 2167 60 1123 24 4143 58 8356 65 95100 89 96100 39 961 71 5840 79 8880 80 999 76 3922 64 658 61 369 11 7784 98 2519 90 6939 5 383 66 7390 14 8132 98 736 22 3585 73 7018 95 6010 86 6972 82 113 82 6752 33 1480 70 8934 64 30 27 6231 47 8280 94 1723 7 3928 13 3795 61 1331 46 9119 7 99100 6 9453 3 437 21 122 45 3953 92 1274 86 7638 55 31 12 6485 85 7184 38 7543 41 1647 66 6835 57 474 73 9831 3 821 52 7891 77 448 16 3748 100 776 85 4075 68 1113 64 5592 31 959 8 297 72 1066 68 3734 10 10082 98 1089 80 4875 33 7432 15 5535 72 7620 11 46100 91 1842 33 836 41 4051 57 318 13 2115 70 532 9 355 83 2419 41 3654 70 5947 53 2120 71 6312 9 1736 64 1557 75 183 53 4024 84 5758 86 9743 82 2219 80 1223 70 1944 31 91100 33 8947 32 8595 33 2628 81 5290 93 6252 27 34 42 749 70 232 60 7579 20 61 13 6434 29 3772 73 825 74 994 29 6113 46 1097 76 4713 78 57 13 775 83 7513 99 923 60 9199 92 6034 78 2145 39 56 27 737 95 2111 30 4034 72 7597 40 4559 19 8588 17 984 62 8730 83 1650 65 6185 70 96 68 9188 27 374 76 221 52 510 9 178 20 8088 58 4131 90 699 58 9239 68 8938 36 5378 56 1346 59 2538 73 5844 52 3277 83 5878 13 3411 78 391 2 1234 78 664 95 8235 35 6089 42 112 88 91100 37 7675 69 658 20 935 97 4880 66 4473 91 4174 83 5222 89 5823 21 9767 89 5922 28 3717 55 2952 71 9865 89 9855 37 927 39 5885 68 4175 76 3748 64 6924 57 976 10 6290 72 2025 63 5891 2 8276 21 6041 9 4479 7 6295 82 2740 67 3476 47 7038 8 3596 55 7278 3 7239 12 8414 89 234 27 9131 10 6843 82 1885 55 9167 67 6273 41 2637 3 5837 33 1881 30 4172 21 2868 94 2669 74 9859 46 255 3 2052 37 892 32 9580 60 282 72 5910 72 10017 17 2460 87 9064 20 3049 78 5248 62 36 90 1880 33 2520 14 8869 82 8397 61 9434 38 1182 20 52100 84 3117 52 1327 63 7217 69 2111 10 8078 100 6959 30 9549 48 5579 8 7254 73 6845 4 6344 5 9780 22 4253 76 7743 97 3561 11 302 47 936 12 1394 54 916 56 9345 61 96100 54 9496 67 69 67 7898 31 6716 88 9625 85 6610 67 9276 78 5561 11 9747 25 987 70 2016 79 4028 88 8191 86 3291 54 602 35 8867 56 1534 54 3338 3 5267 68 5224 60 6789 41 2097 44 6079 29 4198 57 3712 83 577 79 525 40 8213 69 2056 56 5229 23 1398 69 7465 39 4573 81 8774 24 475 36 5297 96 544 45 661 23 2896 23 2520 98 7027 6 148 52 289 8 1177 91 250 22 3961 85 2224 24 7747 88 7090 67 8241 97 6884 75 5668 23 6073 5 8014 78 6071 75 2533 69 5572 83 63100 60 8493 21 5790 77 4646 25 238 78 934 86 3115 29 6686 82 8186 54 5523 35 4476 45 7238 87 3525 43 8734 44 9128 95 9815 40 9860 4 6155 71 4642 67 8689 84 4714 58 2687 81 4896 100 1888 76 9882 93 9692 38 9466 43 1269 91 7237 17 6282 79 967 13 9691 5 2534 29 2953 89 7427 97 6748 19 1438 13 2563 93 10027 23 1380 25 6422 21 4659 31 9630 5 553 89 8556 57 3416 74 268 88 516 58 2748 77 7984 5 421 61 425 21 401 28 7084 79 4860 5 3879 13 628 62 3861 53 374 86 672 67 5571 52 1519 77 7215 73 2070 88 7313 21 1966 96 690 34 2960 83 2054 12 8651 37 95100 87 4771 83 388 47 9092 40 1719 53 619 78 934 25 1730 29 5775 40 7073 4 8287 28 1798 83 3916 39 7997 14 1759 75 3262 18 593 92 9294 53 8267 23 2540 47 8187 22 5661 56 231 11 6652 91 1668 63 4011 32 6523 7 5715 28 3770 42 4077 21 9015 81 3021 84 6259 89 4160 24 9436 4 2120 60 7560 81 8376 41 7351 32 3196 10 5885 13 840 20 2582 86 1620 56 6955 99 8197 24 7820 18 123 1 1924 8 1583 41 6355 48 1560 2 6843 86 2082 35 7630 17 5222 42 2536 60 9182 77 3977 83 3254 13 8666 90 10094 30 542 35 7835 16 4257 71 10047 12 9548 59 2368 6 1371 59 980 65 2528 2 3688 40 8444 62 1379 69 1161 18 708 87 810 22 5579 6 3065 42 1990 24 6384 40 706 37 1223 17 75100 31 1152 23 1589 74 7130 25 581 58 3387 21 9138 86 1143 81 994 57 2933 34 8661 89 9145 58 6987 66 7210 38 3884 30 230 71 4057 38 5235 68 3596 33 2736 86 3498 100 6540 76 9248 86 2170 16 585 2 9970 93 641 35 6440 31 9452 27 3970 15 3429 37 574 35 91100 6 3140 29 741 48 1045 24 7245 19 5613 42 3495 22 1580 32 6746 69 5852 39 258 90 10022 54 1693 26 4878 71 6873 29 3981 40 4325 24 9567 1 5695 85 1885 86 5677 46 9819 32 1948 39 2023 68 1142 63 8516 53 1098 85 6478 53 7880 46 3017 8 1896 31 2598 55 7077 97 4897 10 9186 7 5219 13 3695 11 945 77 371 86 3494 30 167 3 2642 33 10016 43 6828 43 8316 11 381 94 519 95 178 12 2634 21 8082 28 7131 80 3131 15 10010 32 1452 20 7194 20 2137 87 856 35 4238 18 10038 4 4099 70 2740 32 4054 86 325 77 17100 74 5453 28 7425 54 159 3 891 35 471 97 3917 79 1343 24 7960 34 7277 76 2067 14 9366 98 2185 12 584 63 2330 74 6755 94 4744 65 5842 7 1553 48 1587 37 9438 92 8567 88 3338 100 1541 5 7554 8 6234 74 9432 27 272 1 371 28 417 31 5767 54 4279 74 1311 99 92100 26 1684 90 10 53 429 10 8447 2 345 100 5268 76 6555 55 1735 73 7547 66 456 54 7641 54 5551 65 5876 84 6773 94 697 81 5365 18 8257 41 4256 91 372 36 3951 61 9595 21 5928 44 7783 98 82100 9 2752 79 9598 87 2522 95 3029 42 6223 8 1323 100 510 28 7272 96 8019 23 8535 81 86 53 7996 46 5967 19 1642 65 7894 30 6757 87 829 25 5944 35 5722 20 8946 60 8733 61 434 9 3214 33 9073 44 111 60 9833 29 7967 48 1531 32 2022 88 7329 16 4583 62 484 1 8019 77 9670 91 10027 23 7284 26 6764 16 6259 98 127 84 2216 66 9293 73 8754 84 3394 11 3732 67 1099 97 9850 95 4194 6 9715 90 9257 75 3769 39 593 38 185 42 2543 89 7658 91 8961 55 761 95 8779 46 8475 31 5976 70 2221 66 1474 32 1442 93 6326 20 9087 78 1746 13 6784 90 4215 74 46 54 7686 22 4441 31 52100 18 712 85 5975 63 7450 36 9313 9 6155 77 3631 9 9110 19 418 69 5473 93 397 18 3460 29 9482 87 3099 95 9159 78 2487 12 1459 22 7641 88 722 48 2599 35 5823 89 93100 61 3379 87 6353 22 112 3 2655 82 2110 36 765 19 4516 93 8914 46 4090 98 7218 56 5593 5 46100 84 7257 48 7871 81 4181 69 8363 42 2354 18 7218 75 886 98 7587 15 8436 54 3873 35 2352 56 845 95 262 59 2329 90 665 20 3732 81 729 2 608 59 631 30 5828 11 217 52 7056 82 2366 17 1634 44 7145 24 722 41 1714 72 3777 41 6276 7 2861 29 4158 63 6276 5 7635 64 1751 72 543 72 6331 9 8975 28 2534 14 724 64 84100 97 296 2 7253 52 6563 75 3457 61 1552 58 4127 81 79 78 90100 66 798 38 3279 26 2630 64 3313 15 7554 84 7747 92 812 96 7660 68 6967 60 99100 63 340 9 3591 2 1117 81 10090 22 2353 97 927 56 2833 12 8663 18 9525 17 1856 83 7223 3 10073 66 5952 96 1716 20 1316 81 3231 57 62100 23 2048 21 333 31 4857 59 385 34 584 8 4019 38 410 44 9917 53 3394 24 5319 57 9956 1 9353 66 7257 92 7892 82 1440 58 6176 58 1968 55 2951 52 9416 12 260 52 7813 62 10097 70 423 34 7957 66 775 55 8147 71 8083 89 3149 60 8830 9 8598 85 3895 44 7921 57 2052 69 4240 29 196 45 7950 66 616 10 2058 58 8195 24 554 38 520 73 9158 12 2427 86 6893 54 65 92 6833 17 147 52 3339 94 6427 61 1915 12 175 18 6179 6 2023 36 8660 86 10028 74 8330 57 6722 61 9962 86 177 78 5391 24 304 92 1397 16 1374 77 3872 15 9338 2 5754 31 998 31 7867 5 1169 77 10084 18 418 7 328 90 8592 3 3626 7 4626 57 6131 20 624 57 3862 90 7575 46 1790 37 8252 29 52 57 5331 8 8118 28 9190 76 6115 19 1245 38 1155 94 277 55 657 84 9332 14 8381 79 1351 36 9913 64 4289 99 821 95 5365 83 4388 5 554 99 3417 78 6717 75 2852 68 1183 88 3330 61 2317 46 5455 68 3779 70 927 38 8062 46 120 2 1487 37 3638 42 1151 82 1510 37 8598 4 4632 38 2055 58 7932 47 8790 69 6084 71 1261 34 1419 87 8693 81 9797 58 73100 70 9110 5 4321 1 1426 2 4217 6 4050 58 10067 58 2073 43 3533 58 976 9 3284 53 4756 92 595 4 8156 61 782 47 469 67 9844 26 64 11 8383 12 5640 87 5929 35 24100 89 7618 75 374 27 6087 47 8385 93 6322 84 761 81 6656 87 923 96 4769 96 2837 73 1072 98 8984 32 4624 100 3537 92 5725 18 1764 25 8382 32 1491 65 2282 2 6921 80 6314 12 5828 96 1547 27 412 86 3893 24 7210 33 2186 67 9264 15 2590 63 3693 37 3420 24 9597 69 8672 68 3022 15 9989 37 9493 61 4743 30 2619 25 720 39 436 26 844 47 188 93 4037 87 6453 6 6197 37 3411 97 843 44 597 54 4130 65 8125 65 3496 46 955 94 188 98 5277 23 2442 73 4010 34 8269 96 352 60 7557 53 7368 23 9269 18 211 23 5772 84 7286 23 470 92 6782 45 7747 39 8486 75 3312 39 7154 99 9597 44 6478 92 3913 35 3697 40 8882 55 911 90 3167 77 3528 53 3612 98 9544 60 6757 76 7317 63 2295 62 9629 21 130 32 7916 35 5951 16 8477 61 992 100 8165 19 26100 68 1498 22 421 87 7176 77 7328 16 51 7 5998 42 2448 55 5412 24 319 32 699 77 7766 30 10094 29 2232 71 9345 62 5781 64 7045 70 6212 100 827 21 1750 69 975 66 3779 12 1069 3 8115 48 1950 82 2668 47 7820 94 4038 15 1725 55 3510 55 491 47 2091 61 19100 76 792 20 1262 67 7892 80 8755 65 6153 70 6612 65 6674 98 454 78 1536 12 284 79 3316 58 424 17 1199 41 6288 98 5498 6 7581 8 3787 63 134 64 2756 30 683 83 3814 60 303 98 2253 100 7914 63 9453 48 9659 72 7995 11 9477 89 7575 37 6851 9 4695 85 8132 77 6628 37 9522 34 5264 81 1128 12 8719 54 5964 82 824 99 5436 32 8538 68 942 77 5761 88 6788 17 10026 26 9477 31 955 2 7180 53 3875 2 675 36 844 7 1292 55 4752 10 2051 46 6977 28 946 26 6819 71 9358 27 7668 85 5981 53 8518 89 1093 40 7185 16 7139 62 1006 97 7717 26 7486 14 2211 5 8221 94 3656 43 820 60 529 11 4237 65 243 83 2726 91 4023 66 834 87 2524 29 1191 86 2559 96 910 89 6995 95 173 22 3944 88 4129 36 8624 98 372 42 2043 99 7491 10 5747 68 4818 18 9576 87 2215 81 6241 85 2638 4 160 100 7854 98 460 57 4298 13 2928 58 4690 16 860 20 2137 43 8620 62 8833 55 8582 42 3754 53 9182 97 7099 70 8677 75 5329 71 9963 74 9558 20 2289 48 3925 2 954 83 448 64 3433 70 7631 11 9887 93 3558 85 4296 74 5696 28 172 100 5412345678910111213141516171819202122232425262728293031323334353637383940414243444546// Hacker Cup 2017
// Qualification Round
// Progress Pie
// Wesley May
import java.util.*;
public class ProgressPie
{
public static void main(String args[])
{
double EPS = 0.000001;
Scanner scan = new Scanner(System.in);
int T = scan.nextInt();
for(int ca=1;ca <= T;ca++)
{
double p = scan.nextDouble() / 100;
double x = scan.nextDouble();
double y = scan.nextDouble();
boolean ans = solve(p, x, y);
System.out.println("Case #" + ca + ": " + (ans ? "black" : "white"));
}
}
public static boolean solve(double p, double x, double y)
{
if(p == 0) return false;
double dx = x - 50;
double dy = y - 50;
double d = Math.sqrt(dx*dx + dy*dy);
if (d > 50) return false;
if(dx == 0 && dy == 0) return true;
double theta = Math.atan2(dy, dx);
if (theta < 0) theta += 2 * Math.PI;
double myp = (2 * Math.PI - theta) / (2 * Math.PI);
myp += 0.25;
if (myp >= 1) myp -= 1;
return myp <= p;
}
}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556Some progress bars fill you with anticipation. Some are finished before youknow it and make you wonder why there was a progress bar at all.
Some progress bars progress at a pleasant, steady rate. Some are chaotic,lurching forward and then pausing for long periods. Some seem to slow down asthey go, never quite reaching 100%.
Some progress bars are in fact not bars at all, but circles.
On your screen is a progress pie, a sort of progress bar that shows itsprogress as a sector of a circle. Envision your screen as a square on theplane with its bottom-left corner at (0, 0), and its upper-right corner at(100, 100). Every point on the screen is either white or black. Initially, theprogress is 0%, and all points on the screen are white. When the progresspercentage, **P**, is greater than 0%, a sector of angle (**P**% * 360)degrees is colored black, anchored by the line segment from the center of thesquare to the center of the top side, and proceeding clockwise.

While you wait for the progress pie to fill in, you find yourself thinkingabout whether certain points would be white or black at different amounts ofprogress.
### Input
Input begins with an integer **T**, the number of points you're curious about.For each point, there is a line containing three space-separated integers,**P**, the amount of progress as a percentage, and **X** and **Y**, thecoordinates of the point.
### Output
For the **i**th point, print a line containing "Case #**i**: " followed by thecolor of the point, either "black" or "white".
### Constraints
1 ≤ **T** ≤ 1,000 0 ≤ **P**, **X**, **Y** ≤ 100
Whenever a point (**X**, **Y**) is queried, it's guaranteed that all pointswithin a distance of 10-6 of (**X**, **Y**) are the same color as (**X**,**Y**).
### Explanation of Sample
In the first case all of the points are white, so the point at (55, 55) is ofcourse white.
In the second case, (55, 55) is close to the filled-in sector of the circle,but it's still white.
In the third case, the filled-in sector of the circle now covers (55, 55),coloring it black.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005Case #1: whiteCase #2: whiteCase #3: blackCase #4: whiteCase #5: blackCase #6: whiteCase #7: whiteCase #8: whiteCase #9: blackCase #10: whiteCase #11: blackCase #12: whiteCase #13: blackCase #14: whiteCase #15: whiteCase #16: blackCase #17: whiteCase #18: blackCase #19: blackCase #20: whiteCase #21: whiteCase #22: whiteCase #23: blackCase #24: blackCase #25: whiteCase #26: whiteCase #27: blackCase #28: blackCase #29: whiteCase #30: blackCase #31: blackCase #32: whiteCase #33: whiteCase #34: whiteCase #35: whiteCase #36: whiteCase #37: blackCase #38: blackCase #39: whiteCase #40: whiteCase #41: whiteCase #42: whiteCase #43: whiteCase #44: blackCase #45: whiteCase #46: whiteCase #47: blackCase #48: blackCase #49: whiteCase #50: whiteCase #51: whiteCase #52: whiteCase #53: whiteCase #54: whiteCase #55: whiteCase #56: whiteCase #57: blackCase #58: whiteCase #59: whiteCase #60: blackCase #61: blackCase #62: whiteCase #63: blackCase #64: whiteCase #65: blackCase #66: whiteCase #67: blackCase #68: whiteCase #69: whiteCase #70: whiteCase #71: whiteCase #72: blackCase #73: whiteCase #74: blackCase #75: blackCase #76: blackCase #77: blackCase #78: whiteCase #79: blackCase #80: blackCase #81: whiteCase #82: whiteCase #83: blackCase #84: blackCase #85: whiteCase #86: blackCase #87: whiteCase #88: whiteCase #89: whiteCase #90: whiteCase #91: whiteCase #92: whiteCase #93: whiteCase #94: whiteCase #95: whiteCase #96: blackCase #97: whiteCase #98: blackCase #99: blackCase #100: blackCase #101: whiteCase #102: blackCase #103: blackCase #104: whiteCase #105: blackCase #106: whiteCase #107: whiteCase #108: whiteCase #109: whiteCase #110: whiteCase #111: blackCase #112: whiteCase #113: blackCase #114: blackCase #115: whiteCase #116: blackCase #117: whiteCase #118: blackCase #119: blackCase #120: blackCase #121: whiteCase #122: blackCase #123: whiteCase #124: whiteCase #125: blackCase #126: whiteCase #127: whiteCase #128: whiteCase #129: whiteCase #130: blackCase #131: whiteCase #132: whiteCase #133: blackCase #134: whiteCase #135: blackCase #136: blackCase #137: whiteCase #138: whiteCase #139: blackCase #140: blackCase #141: blackCase #142: whiteCase #143: whiteCase #144: whiteCase #145: blackCase #146: whiteCase #147: whiteCase #148: whiteCase #149: blackCase #150: whiteCase #151: whiteCase #152: blackCase #153: whiteCase #154: blackCase #155: whiteCase #156: blackCase #157: blackCase #158: whiteCase #159: whiteCase #160: whiteCase #161: whiteCase #162: blackCase #163: whiteCase #164: blackCase #165: blackCase #166: whiteCase #167: whiteCase #168: blackCase #169: whiteCase #170: blackCase #171: blackCase #172: whiteCase #173: blackCase #174: whiteCase #175: blackCase #176: blackCase #177: whiteCase #178: whiteCase #179: whiteCase #180: whiteCase #181: whiteCase #182: whiteCase #183: blackCase #184: blackCase #185: whiteCase #186: blackCase #187: blackCase #188: whiteCase #189: blackCase #190: whiteCase #191: whiteCase #192: blackCase #193: whiteCase #194: whiteCase #195: blackCase #196: blackCase #197: whiteCase #198: blackCase #199: whiteCase #200: blackCase #201: blackCase #202: whiteCase #203: blackCase #204: whiteCase #205: blackCase #206: blackCase #207: whiteCase #208: blackCase #209: blackCase #210: whiteCase #211: whiteCase #212: whiteCase #213: blackCase #214: whiteCase #215: whiteCase #216: blackCase #217: whiteCase #218: whiteCase #219: whiteCase #220: whiteCase #221: whiteCase #222: whiteCase #223: whiteCase #224: whiteCase #225: whiteCase #226: whiteCase #227: whiteCase #228: whiteCase #229: whiteCase #230: whiteCase #231: blackCase #232: blackCase #233: whiteCase #234: whiteCase #235: whiteCase #236: whiteCase #237: whiteCase #238: whiteCase #239: whiteCase #240: whiteCase #241: whiteCase #242: blackCase #243: blackCase #244: whiteCase #245: blackCase #246: blackCase #247: whiteCase #248: whiteCase #249: whiteCase #250: whiteCase #251: whiteCase #252: blackCase #253: blackCase #254: blackCase #255: whiteCase #256: whiteCase #257: whiteCase #258: blackCase #259: blackCase #260: whiteCase #261: blackCase #262: blackCase #263: blackCase #264: whiteCase #265: blackCase #266: whiteCase #267: whiteCase #268: whiteCase #269: whiteCase #270: whiteCase #271: whiteCase #272: blackCase #273: whiteCase #274: whiteCase #275: whiteCase #276: whiteCase #277: blackCase #278: blackCase #279: whiteCase #280: blackCase #281: blackCase #282: whiteCase #283: blackCase #284: whiteCase #285: blackCase #286: blackCase #287: whiteCase #288: blackCase #289: whiteCase #290: whiteCase #291: blackCase #292: blackCase #293: whiteCase #294: blackCase #295: blackCase #296: whiteCase #297: whiteCase #298: blackCase #299: blackCase #300: whiteCase #301: whiteCase #302: whiteCase #303: whiteCase #304: whiteCase #305: whiteCase #306: blackCase #307: blackCase #308: whiteCase #309: whiteCase #310: whiteCase #311: whiteCase #312: whiteCase #313: blackCase #314: blackCase #315: blackCase #316: whiteCase #317: whiteCase #318: whiteCase #319: whiteCase #320: whiteCase #321: whiteCase #322: whiteCase #323: whiteCase #324: blackCase #325: whiteCase #326: whiteCase #327: blackCase #328: whiteCase #329: blackCase #330: whiteCase #331: blackCase #332: whiteCase #333: blackCase #334: blackCase #335: whiteCase #336: whiteCase #337: whiteCase #338: whiteCase #339: whiteCase #340: blackCase #341: whiteCase #342: whiteCase #343: whiteCase #344: blackCase #345: blackCase #346: blackCase #347: whiteCase #348: blackCase #349: blackCase #350: whiteCase #351: whiteCase #352: whiteCase #353: blackCase #354: blackCase #355: whiteCase #356: blackCase #357: whiteCase #358: blackCase #359: whiteCase #360: whiteCase #361: blackCase #362: blackCase #363: whiteCase #364: blackCase #365: blackCase #366: whiteCase #367: blackCase #368: whiteCase #369: whiteCase #370: whiteCase #371: whiteCase #372: whiteCase #373: blackCase #374: blackCase #375: whiteCase #376: whiteCase #377: blackCase #378: whiteCase #379: blackCase #380: whiteCase #381: blackCase #382: whiteCase #383: blackCase #384: blackCase #385: blackCase #386: blackCase #387: blackCase #388: whiteCase #389: blackCase #390: whiteCase #391: whiteCase #392: blackCase #393: whiteCase #394: blackCase #395: whiteCase #396: whiteCase #397: blackCase #398: whiteCase #399: whiteCase #400: whiteCase #401: blackCase #402: blackCase #403: blackCase #404: blackCase #405: whiteCase #406: whiteCase #407: whiteCase #408: blackCase #409: whiteCase #410: whiteCase #411: whiteCase #412: blackCase #413: blackCase #414: blackCase #415: whiteCase #416: whiteCase #417: blackCase #418: whiteCase #419: whiteCase #420: blackCase #421: blackCase #422: whiteCase #423: whiteCase #424: whiteCase #425: whiteCase #426: blackCase #427: blackCase #428: blackCase #429: blackCase #430: whiteCase #431: blackCase #432: blackCase #433: blackCase #434: whiteCase #435: whiteCase #436: blackCase #437: blackCase #438: whiteCase #439: whiteCase #440: whiteCase #441: blackCase #442: blackCase #443: whiteCase #444: whiteCase #445: whiteCase #446: whiteCase #447: whiteCase #448: whiteCase #449: whiteCase #450: whiteCase #451: whiteCase #452: whiteCase #453: blackCase #454: whiteCase #455: blackCase #456: blackCase #457: whiteCase #458: whiteCase #459: whiteCase #460: whiteCase #461: whiteCase #462: whiteCase #463: blackCase #464: whiteCase #465: whiteCase #466: whiteCase #467: blackCase #468: whiteCase #469: whiteCase #470: blackCase #471: blackCase #472: blackCase #473: blackCase #474: blackCase #475: whiteCase #476: blackCase #477: whiteCase #478: blackCase #479: whiteCase #480: whiteCase #481: whiteCase #482: blackCase #483: whiteCase #484: whiteCase #485: whiteCase #486: whiteCase #487: whiteCase #488: whiteCase #489: whiteCase #490: blackCase #491: whiteCase #492: whiteCase #493: blackCase #494: whiteCase #495: blackCase #496: blackCase #497: whiteCase #498: blackCase #499: whiteCase #500: whiteCase #501: whiteCase #502: whiteCase #503: whiteCase #504: whiteCase #505: blackCase #506: whiteCase #507: whiteCase #508: whiteCase #509: blackCase #510: blackCase #511: whiteCase #512: whiteCase #513: whiteCase #514: blackCase #515: blackCase #516: whiteCase #517: blackCase #518: whiteCase #519: blackCase #520: blackCase #521: whiteCase #522: whiteCase #523: whiteCase #524: blackCase #525: whiteCase #526: whiteCase #527: blackCase #528: blackCase #529: whiteCase #530: blackCase #531: whiteCase #532: whiteCase #533: blackCase #534: blackCase #535: blackCase #536: whiteCase #537: whiteCase #538: whiteCase #539: blackCase #540: whiteCase #541: whiteCase #542: whiteCase #543: whiteCase #544: blackCase #545: whiteCase #546: whiteCase #547: whiteCase #548: blackCase #549: blackCase #550: whiteCase #551: whiteCase #552: whiteCase #553: whiteCase #554: whiteCase #555: blackCase #556: whiteCase #557: blackCase #558: whiteCase #559: whiteCase #560: whiteCase #561: whiteCase #562: whiteCase #563: blackCase #564: whiteCase #565: whiteCase #566: blackCase #567: whiteCase #568: whiteCase #569: whiteCase #570: whiteCase #571: blackCase #572: whiteCase #573: blackCase #574: whiteCase #575: whiteCase #576: whiteCase #577: blackCase #578: blackCase #579: blackCase #580: blackCase #581: whiteCase #582: whiteCase #583: whiteCase #584: whiteCase #585: blackCase #586: whiteCase #587: blackCase #588: whiteCase #589: blackCase #590: whiteCase #591: whiteCase #592: blackCase #593: blackCase #594: whiteCase #595: blackCase #596: blackCase #597: whiteCase #598: whiteCase #599: blackCase #600: whiteCase #601: blackCase #602: blackCase #603: whiteCase #604: whiteCase #605: whiteCase #606: whiteCase #607: whiteCase #608: whiteCase #609: blackCase #610: blackCase #611: whiteCase #612: whiteCase #613: blackCase #614: whiteCase #615: whiteCase #616: whiteCase #617: whiteCase #618: whiteCase #619: whiteCase #620: whiteCase #621: whiteCase #622: blackCase #623: blackCase #624: blackCase #625: blackCase #626: whiteCase #627: blackCase #628: whiteCase #629: whiteCase #630: whiteCase #631: whiteCase #632: whiteCase #633: blackCase #634: blackCase #635: blackCase #636: whiteCase #637: whiteCase #638: whiteCase #639: blackCase #640: whiteCase #641: blackCase #642: whiteCase #643: whiteCase #644: whiteCase #645: blackCase #646: blackCase #647: whiteCase #648: whiteCase #649: blackCase #650: blackCase #651: blackCase #652: whiteCase #653: blackCase #654: whiteCase #655: blackCase #656: blackCase #657: whiteCase #658: whiteCase #659: blackCase #660: whiteCase #661: blackCase #662: whiteCase #663: whiteCase #664: blackCase #665: whiteCase #666: whiteCase #667: blackCase #668: blackCase #669: whiteCase #670: blackCase #671: whiteCase #672: whiteCase #673: whiteCase #674: whiteCase #675: blackCase #676: blackCase #677: blackCase #678: whiteCase #679: blackCase #680: whiteCase #681: blackCase #682: whiteCase #683: whiteCase #684: whiteCase #685: blackCase #686: blackCase #687: blackCase #688: whiteCase #689: blackCase #690: blackCase #691: blackCase #692: blackCase #693: whiteCase #694: blackCase #695: whiteCase #696: whiteCase #697: whiteCase #698: whiteCase #699: blackCase #700: whiteCase #701: blackCase #702: whiteCase #703: whiteCase #704: blackCase #705: whiteCase #706: whiteCase #707: blackCase #708: blackCase #709: blackCase #710: blackCase #711: blackCase #712: blackCase #713: whiteCase #714: blackCase #715: whiteCase #716: whiteCase #717: whiteCase #718: blackCase #719: whiteCase #720: blackCase #721: blackCase #722: whiteCase #723: blackCase #724: blackCase #725: whiteCase #726: blackCase #727: whiteCase #728: blackCase #729: whiteCase #730: whiteCase #731: whiteCase #732: blackCase #733: blackCase #734: blackCase #735: whiteCase #736: whiteCase #737: blackCase #738: whiteCase #739: whiteCase #740: whiteCase #741: whiteCase #742: whiteCase #743: blackCase #744: whiteCase #745: whiteCase #746: blackCase #747: whiteCase #748: whiteCase #749: whiteCase #750: blackCase #751: whiteCase #752: blackCase #753: whiteCase #754: whiteCase #755: whiteCase #756: blackCase #757: whiteCase #758: whiteCase #759: blackCase #760: whiteCase #761: whiteCase #762: whiteCase #763: blackCase #764: whiteCase #765: whiteCase #766: blackCase #767: whiteCase #768: whiteCase #769: whiteCase #770: blackCase #771: whiteCase #772: whiteCase #773: whiteCase #774: whiteCase #775: blackCase #776: whiteCase #777: blackCase #778: whiteCase #779: whiteCase #780: whiteCase #781: blackCase #782: blackCase #783: whiteCase #784: blackCase #785: whiteCase #786: blackCase #787: whiteCase #788: whiteCase #789: blackCase #790: whiteCase #791: blackCase #792: blackCase #793: whiteCase #794: whiteCase #795: blackCase #796: blackCase #797: whiteCase #798: whiteCase #799: whiteCase #800: whiteCase #801: blackCase #802: whiteCase #803: whiteCase #804: blackCase #805: whiteCase #806: whiteCase #807: blackCase #808: whiteCase #809: blackCase #810: blackCase #811: blackCase #812: whiteCase #813: whiteCase #814: whiteCase #815: blackCase #816: whiteCase #817: whiteCase #818: blackCase #819: whiteCase #820: whiteCase #821: whiteCase #822: blackCase #823: blackCase #824: whiteCase #825: blackCase #826: blackCase #827: blackCase #828: whiteCase #829: blackCase #830: whiteCase #831: whiteCase #832: blackCase #833: whiteCase #834: blackCase #835: blackCase #836: whiteCase #837: blackCase #838: blackCase #839: blackCase #840: whiteCase #841: whiteCase #842: blackCase #843: whiteCase #844: whiteCase #845: whiteCase #846: blackCase #847: whiteCase #848: whiteCase #849: blackCase #850: whiteCase #851: whiteCase #852: blackCase #853: whiteCase #854: whiteCase #855: whiteCase #856: whiteCase #857: whiteCase #858: blackCase #859: whiteCase #860: whiteCase #861: whiteCase #862: whiteCase #863: whiteCase #864: whiteCase #865: blackCase #866: whiteCase #867: whiteCase #868: whiteCase #869: whiteCase #870: whiteCase #871: whiteCase #872: whiteCase #873: blackCase #874: whiteCase #875: whiteCase #876: blackCase #877: whiteCase #878: whiteCase #879: blackCase #880: whiteCase #881: whiteCase #882: whiteCase #883: blackCase #884: whiteCase #885: whiteCase #886: whiteCase #887: blackCase #888: blackCase #889: whiteCase #890: blackCase #891: whiteCase #892: whiteCase #893: blackCase #894: whiteCase #895: whiteCase #896: blackCase #897: whiteCase #898: whiteCase #899: blackCase #900: whiteCase #901: whiteCase #902: whiteCase #903: whiteCase #904: blackCase #905: whiteCase #906: whiteCase #907: whiteCase #908: blackCase #909: whiteCase #910: blackCase #911: whiteCase #912: blackCase #913: whiteCase #914: whiteCase #915: blackCase #916: whiteCase #917: blackCase #918: whiteCase #919: blackCase #920: whiteCase #921: whiteCase #922: whiteCase #923: blackCase #924: whiteCase #925: blackCase #926: blackCase #927: blackCase #928: whiteCase #929: whiteCase #930: whiteCase #931: blackCase #932: whiteCase #933: whiteCase #934: whiteCase #935: blackCase #936: whiteCase #937: blackCase #938: whiteCase #939: blackCase #940: whiteCase #941: whiteCase #942: blackCase #943: whiteCase #944: blackCase #945: blackCase #946: whiteCase #947: whiteCase #948: whiteCase #949: whiteCase #950: whiteCase #951: blackCase #952: blackCase #953: whiteCase #954: whiteCase #955: whiteCase #956: whiteCase #957: blackCase #958: blackCase #959: whiteCase #960: whiteCase #961: blackCase #962: whiteCase #963: whiteCase #964: whiteCase #965: blackCase #966: whiteCase #967: blackCase #968: blackCase #969: whiteCase #970: blackCase #971: blackCase #972: blackCase #973: whiteCase #974: blackCase #975: blackCase #976: whiteCase #977: whiteCase #978: blackCase #979: whiteCase #980: whiteCase #981: blackCase #982: whiteCase #983: blackCase #984: blackCase #985: whiteCase #986: blackCase #987: blackCase #988: blackCase #989: blackCase #990: blackCase #991: whiteCase #992: blackCase #993: whiteCase #994: whiteCase #995: whiteCase #996: whiteCase #997: blackCase #998: whiteCase #999: blackCase #1000: blackCase #1001: blackCase #1002: whiteCase #1003: whiteCase #1004: blackCase #1005: blackCase #1006: whiteCase #1007: whiteCase #1008: whiteCase #1009: whiteCase #1010: blackCase #1011: blackCase #1012: whiteCase #1013: whiteCase #1014: blackCase #1015: whiteCase #1016: whiteCase #1017: whiteCase #1018: whiteCase #1019: whiteCase #1020: blackCase #1021: blackCase #1022: blackCase #1023: blackCase #1024: whiteCase #1025: whiteCase #1026: blackCase #1027: blackCase #1028: whiteCase #1029: whiteCase #1030: blackCase #1031: whiteCase #1032: whiteCase #1033: whiteCase #1034: blackCase #1035: whiteCase #1036: whiteCase #1037: whiteCase #1038: whiteCase #1039: whiteCase #1040: blackCase #1041: blackCase #1042: whiteCase #1043: blackCase #1044: whiteCase #1045: blackCase #1046: blackCase #1047: whiteCase #1048: blackCase #1049: blackCase #1050: whiteCase #1051: blackCase #1052: whiteCase #1053: whiteCase #1054: whiteCase #1055: whiteCase #1056: whiteCase #1057: whiteCase #1058: blackCase #1059: whiteCase #1060: whiteCase #1061: blackCase #1062: blackCase #1063: blackCase #1064: whiteCase #1065: whiteCase #1066: whiteCase #1067: blackCase #1068: blackCase #1069: blackCase #1070: blackCase #1071: blackCase #1072: blackCase #1073: blackCase #1074: whiteCase #1075: blackCase #1076: blackCase #1077: blackCase #1078: whiteCase #1079: whiteCase #1080: blackCase #1081: whiteCase #1082: blackCase #1083: blackCase #1084: blackCase #1085: whiteCase #1086: blackCase #1087: whiteCase #1088: whiteCase #1089: blackCase #1090: blackCase #1091: blackCase #1092: blackCase #1093: blackCase #1094: blackCase #1095: whiteCase #1096: whiteCase #1097: whiteCase #1098: whiteCase #1099: blackCase #1100: whiteCase #1101: blackCase #1102: whiteCase #1103: blackCase #1104: whiteCase #1105: whiteCase #1106: blackCase #1107: whiteCase #1108: whiteCase #1109: blackCase #1110: whiteCase #1111: whiteCase #1112: whiteCase #1113: whiteCase #1114: whiteCase #1115: whiteCase #1116: blackCase #1117: whiteCase #1118: blackCase #1119: blackCase #1120: whiteCase #1121: blackCase #1122: whiteCase #1123: whiteCase #1124: whiteCase #1125: blackCase #1126: blackCase #1127: blackCase #1128: blackCase #1129: blackCase #1130: blackCase #1131: whiteCase #1132: whiteCase #1133: whiteCase #1134: whiteCase #1135: blackCase #1136: blackCase #1137: whiteCase #1138: whiteCase #1139: blackCase #1140: whiteCase #1141: whiteCase #1142: whiteCase #1143: whiteCase #1144: whiteCase #1145: blackCase #1146: blackCase #1147: blackCase #1148: whiteCase #1149: blackCase #1150: whiteCase #1151: whiteCase #1152: whiteCase #1153: whiteCase #1154: blackCase #1155: blackCase #1156: whiteCase #1157: whiteCase #1158: whiteCase #1159: whiteCase #1160: whiteCase #1161: blackCase #1162: blackCase #1163: whiteCase #1164: whiteCase #1165: whiteCase #1166: whiteCase #1167: whiteCase #1168: whiteCase #1169: whiteCase #1170: whiteCase #1171: whiteCase #1172: blackCase #1173: whiteCase #1174: whiteCase #1175: whiteCase #1176: blackCase #1177: whiteCase #1178: whiteCase #1179: whiteCase #1180: whiteCase #1181: blackCase #1182: whiteCase #1183: whiteCase #1184: whiteCase #1185: blackCase #1186: blackCase #1187: whiteCase #1188: blackCase #1189: blackCase #1190: whiteCase #1191: blackCase #1192: whiteCase #1193: blackCase #1194: whiteCase #1195: blackCase #1196: whiteCase #1197: whiteCase #1198: blackCase #1199: blackCase #1200: whiteCase #1201: blackCase #1202: whiteCase #1203: whiteCase #1204: whiteCase #1205: whiteCase #1206: whiteCase #1207: whiteCase #1208: blackCase #1209: blackCase #1210: whiteCase #1211: blackCase #1212: blackCase #1213: whiteCase #1214: whiteCase #1215: blackCase #1216: blackCase #1217: whiteCase #1218: blackCase #1219: blackCase #1220: whiteCase #1221: whiteCase #1222: blackCase #1223: whiteCase #1224: whiteCase #1225: whiteCase #1226: blackCase #1227: whiteCase #1228: whiteCase #1229: blackCase #1230: blackCase #1231: whiteCase #1232: whiteCase #1233: blackCase #1234: blackCase #1235: whiteCase #1236: whiteCase #1237: blackCase #1238: whiteCase #1239: whiteCase #1240: blackCase #1241: blackCase #1242: whiteCase #1243: blackCase #1244: whiteCase #1245: whiteCase #1246: whiteCase #1247: whiteCase #1248: blackCase #1249: whiteCase #1250: blackCase #1251: whiteCase #1252: whiteCase #1253: whiteCase #1254: blackCase #1255: blackCase #1256: blackCase #1257: whiteCase #1258: whiteCase #1259: blackCase #1260: whiteCase #1261: whiteCase #1262: whiteCase #1263: whiteCase #1264: blackCase #1265: whiteCase #1266: blackCase #1267: blackCase #1268: whiteCase #1269: whiteCase #1270: whiteCase #1271: blackCase #1272: whiteCase #1273: whiteCase #1274: whiteCase #1275: blackCase #1276: blackCase #1277: blackCase #1278: whiteCase #1279: whiteCase #1280: whiteCase #1281: blackCase #1282: whiteCase #1283: blackCase #1284: whiteCase #1285: blackCase #1286: whiteCase #1287: whiteCase #1288: whiteCase #1289: whiteCase #1290: whiteCase #1291: whiteCase #1292: blackCase #1293: blackCase #1294: whiteCase #1295: blackCase #1296: whiteCase #1297: whiteCase #1298: whiteCase #1299: blackCase #1300: blackCase #1301: whiteCase #1302: blackCase #1303: blackCase #1304: whiteCase #1305: whiteCase #1306: whiteCase #1307: whiteCase #1308: whiteCase #1309: whiteCase #1310: blackCase #1311: whiteCase #1312: whiteCase #1313: blackCase #1314: whiteCase #1315: whiteCase #1316: whiteCase #1317: whiteCase #1318: whiteCase #1319: blackCase #1320: whiteCase #1321: blackCase #1322: whiteCase #1323: whiteCase #1324: whiteCase #1325: blackCase #1326: blackCase #1327: blackCase #1328: blackCase #1329: whiteCase #1330: whiteCase #1331: blackCase #1332: blackCase #1333: whiteCase #1334: whiteCase #1335: whiteCase #1336: whiteCase #1337: blackCase #1338: whiteCase #1339: blackCase #1340: blackCase #1341: blackCase #1342: whiteCase #1343: blackCase #1344: blackCase #1345: blackCase #1346: whiteCase #1347: blackCase #1348: whiteCase #1349: whiteCase #1350: whiteCase #1351: blackCase #1352: whiteCase #1353: whiteCase #1354: whiteCase #1355: whiteCase #1356: whiteCase #1357: whiteCase #1358: whiteCase #1359: whiteCase #1360: blackCase #1361: whiteCase #1362: whiteCase #1363: whiteCase #1364: whiteCase #1365: whiteCase #1366: whiteCase #1367: blackCase #1368: whiteCase #1369: whiteCase #1370: whiteCase #1371: whiteCase #1372: blackCase #1373: whiteCase #1374: blackCase #1375: whiteCase #1376: blackCase #1377: whiteCase #1378: whiteCase #1379: whiteCase #1380: blackCase #1381: whiteCase #1382: whiteCase #1383: whiteCase #1384: whiteCase #1385: blackCase #1386: whiteCase #1387: whiteCase #1388: whiteCase #1389: blackCase #1390: blackCase #1391: blackCase #1392: blackCase #1393: whiteCase #1394: blackCase #1395: whiteCase #1396: whiteCase #1397: blackCase #1398: whiteCase #1399: whiteCase #1400: whiteCase #1401: whiteCase #1402: whiteCase #1403: whiteCase #1404: whiteCase #1405: whiteCase #1406: blackCase #1407: blackCase #1408: whiteCase #1409: blackCase #1410: whiteCase #1411: whiteCase #1412: whiteCase #1413: whiteCase #1414: whiteCase #1415: blackCase #1416: blackCase #1417: blackCase #1418: blackCase #1419: blackCase #1420: blackCase #1421: blackCase #1422: blackCase #1423: whiteCase #1424: blackCase #1425: whiteCase #1426: whiteCase #1427: blackCase #1428: whiteCase #1429: blackCase #1430: blackCase #1431: whiteCase #1432: whiteCase #1433: blackCase #1434: whiteCase #1435: blackCase #1436: whiteCase #1437: whiteCase #1438: whiteCase #1439: whiteCase #1440: whiteCase #1441: whiteCase #1442: whiteCase #1443: whiteCase #1444: blackCase #1445: blackCase #1446: blackCase #1447: blackCase #1448: blackCase #1449: whiteCase #1450: whiteCase #1451: whiteCase #1452: whiteCase #1453: blackCase #1454: whiteCase #1455: whiteCase #1456: whiteCase #1457: blackCase #1458: blackCase #1459: whiteCase #1460: blackCase #1461: whiteCase #1462: blackCase #1463: whiteCase #1464: blackCase #1465: whiteCase #1466: whiteCase #1467: whiteCase #1468: whiteCase #1469: whiteCase #1470: whiteCase #1471: whiteCase #1472: whiteCase #1473: blackCase #1474: blackCase #1475: blackCase #1476: blackCase #1477: whiteCase #1478: whiteCase #1479: blackCase #1480: whiteCase #1481: whiteCase #1482: blackCase #1483: whiteCase #1484: whiteCase #1485: whiteCase #1486: blackCase #1487: whiteCase #1488: blackCase #1489: whiteCase #1490: whiteCase #1491: whiteCase #1492: blackCase #1493: whiteCase #1494: blackCase #1495: blackCase #1496: whiteCase #1497: blackCase #1498: whiteCase #1499: blackCase #1500: whiteCase #1501: blackCase #1502: blackCase #1503: whiteCase #1504: whiteCase #1505: whiteCase #1506: blackCase #1507: whiteCase #1508: whiteCase #1509: blackCase #1510: whiteCase #1511: whiteCase #1512: whiteCase #1513: whiteCase #1514: blackCase #1515: whiteCase #1516: blackCase #1517: whiteCase #1518: blackCase #1519: whiteCase #1520: whiteCase #1521: blackCase #1522: whiteCase #1523: blackCase #1524: whiteCase #1525: blackCase #1526: blackCase #1527: whiteCase #1528: whiteCase #1529: blackCase #1530: whiteCase #1531: whiteCase #1532: whiteCase #1533: whiteCase #1534: whiteCase #1535: blackCase #1536: blackCase #1537: blackCase #1538: whiteCase #1539: blackCase #1540: blackCase #1541: blackCase #1542: whiteCase #1543: whiteCase #1544: whiteCase #1545: whiteCase #1546: whiteCase #1547: blackCase #1548: blackCase #1549: whiteCase #1550: whiteCase #1551: blackCase #1552: whiteCase #1553: whiteCase #1554: whiteCase #1555: whiteCase #1556: whiteCase #1557: whiteCase #1558: blackCase #1559: blackCase #1560: blackCase #1561: whiteCase #1562: whiteCase #1563: whiteCase #1564: whiteCase #1565: whiteCase #1566: blackCase #1567: whiteCase #1568: blackCase #1569: whiteCase #1570: whiteCase #1571: whiteCase #1572: blackCase #1573: whiteCase #1574: blackCase #1575: whiteCase #1576: blackCase #1577: whiteCase #1578: whiteCase #1579: blackCase #1580: blackCase #1581: blackCase #1582: blackCase #1583: whiteCase #1584: whiteCase #1585: blackCase #1586: blackCase #1587: blackCase #1588: whiteCase #1589: whiteCase #1590: blackCase #1591: whiteCase #1592: whiteCase #1593: blackCase #1594: whiteCase #1595: blackCase #1596: whiteCase #1597: whiteCase #1598: whiteCase #1599: blackCase #1600: whiteCase #1601: whiteCase #1602: whiteCase #1603: whiteCase #1604: whiteCase #1605: blackCase #1606: whiteCase #1607: blackCase #1608: whiteCase #1609: whiteCase #1610: whiteCase #1611: blackCase #1612: blackCase #1613: whiteCase #1614: whiteCase #1615: blackCase #1616: whiteCase #1617: whiteCase #1618: whiteCase #1619: whiteCase #1620: whiteCase #1621: blackCase #1622: blackCase #1623: whiteCase #1624: blackCase #1625: whiteCase #1626: blackCase #1627: blackCase #1628: blackCase #1629: blackCase #1630: blackCase #1631: whiteCase #1632: blackCase #1633: whiteCase #1634: whiteCase #1635: whiteCase #1636: blackCase #1637: blackCase #1638: blackCase #1639: blackCase #1640: blackCase #1641: whiteCase #1642: blackCase #1643: whiteCase #1644: whiteCase #1645: blackCase #1646: whiteCase #1647: whiteCase #1648: blackCase #1649: whiteCase #1650: blackCase #1651: blackCase #1652: whiteCase #1653: blackCase #1654: whiteCase #1655: blackCase #1656: blackCase #1657: whiteCase #1658: whiteCase #1659: whiteCase #1660: blackCase #1661: whiteCase #1662: whiteCase #1663: whiteCase #1664: whiteCase #1665: whiteCase #1666: whiteCase #1667: blackCase #1668: blackCase #1669: whiteCase #1670: blackCase #1671: whiteCase #1672: blackCase #1673: whiteCase #1674: whiteCase #1675: blackCase #1676: whiteCase #1677: whiteCase #1678: whiteCase #1679: whiteCase #1680: whiteCase #1681: whiteCase #1682: blackCase #1683: whiteCase #1684: whiteCase #1685: blackCase #1686: whiteCase #1687: blackCase #1688: whiteCase #1689: whiteCase #1690: blackCase #1691: blackCase #1692: whiteCase #1693: whiteCase #1694: whiteCase #1695: whiteCase #1696: whiteCase #1697: blackCase #1698: whiteCase #1699: whiteCase #1700: blackCase #1701: blackCase #1702: whiteCase #1703: whiteCase #1704: blackCase #1705: whiteCase #1706: whiteCase #1707: whiteCase #1708: whiteCase #1709: blackCase #1710: blackCase #1711: whiteCase #1712: blackCase #1713: whiteCase #1714: blackCase #1715: blackCase #1716: whiteCase #1717: whiteCase #1718: blackCase #1719: blackCase #1720: whiteCase #1721: blackCase #1722: whiteCase #1723: blackCase #1724: whiteCase #1725: blackCase #1726: whiteCase #1727: blackCase #1728: whiteCase #1729: blackCase #1730: whiteCase #1731: blackCase #1732: blackCase #1733: blackCase #1734: whiteCase #1735: whiteCase #1736: blackCase #1737: blackCase #1738: whiteCase #1739: whiteCase #1740: whiteCase #1741: whiteCase #1742: whiteCase #1743: blackCase #1744: blackCase #1745: whiteCase #1746: blackCase #1747: blackCase #1748: blackCase #1749: whiteCase #1750: blackCase #1751: blackCase #1752: whiteCase #1753: whiteCase #1754: whiteCase #1755: blackCase #1756: blackCase #1757: whiteCase #1758: blackCase #1759: whiteCase #1760: whiteCase #1761: whiteCase #1762: blackCase #1763: blackCase #1764: whiteCase #1765: whiteCase #1766: whiteCase #1767: whiteCase #1768: whiteCase #1769: whiteCase #1770: blackCase #1771: whiteCase #1772: blackCase #1773: whiteCase #1774: whiteCase #1775: blackCase #1776: blackCase #1777: whiteCase #1778: blackCase #1779: whiteCase #1780: whiteCase #1781: whiteCase #1782: whiteCase #1783: blackCase #1784: whiteCase #1785: blackCase #1786: whiteCase #1787: blackCase #1788: blackCase #1789: whiteCase #1790: blackCase #1791: blackCase #1792: whiteCase #1793: whiteCase #1794: blackCase #1795: whiteCase #1796: whiteCase #1797: whiteCase #1798: whiteCase #1799: whiteCase #1800: blackCase #1801: blackCase #1802: whiteCase #1803: blackCase #1804: whiteCase #1805: whiteCase #1806: whiteCase #1807: blackCase #1808: whiteCase #1809: blackCase #1810: whiteCase #1811: blackCase #1812: blackCase #1813: blackCase #1814: whiteCase #1815: whiteCase #1816: blackCase #1817: blackCase #1818: whiteCase #1819: blackCase #1820: whiteCase #1821: blackCase #1822: blackCase #1823: whiteCase #1824: whiteCase #1825: whiteCase #1826: blackCase #1827: whiteCase #1828: whiteCase #1829: blackCase #1830: blackCase #1831: whiteCase #1832: blackCase #1833: blackCase #1834: whiteCase #1835: blackCase #1836: whiteCase #1837: whiteCase #1838: blackCase #1839: blackCase #1840: whiteCase #1841: blackCase #1842: whiteCase #1843: whiteCase #1844: whiteCase #1845: whiteCase #1846: blackCase #1847: whiteCase #1848: blackCase #1849: blackCase #1850: blackCase #1851: whiteCase #1852: blackCase #1853: whiteCase #1854: whiteCase #1855: blackCase #1856: blackCase #1857: whiteCase #1858: whiteCase #1859: whiteCase #1860: whiteCase #1861: blackCase #1862: blackCase #1863: blackCase #1864: blackCase #1865: blackCase #1866: whiteCase #1867: whiteCase #1868: whiteCase #1869: whiteCase #1870: whiteCase #1871: whiteCase #1872: whiteCase #1873: blackCase #1874: whiteCase #1875: whiteCase #1876: whiteCase #1877: whiteCase #1878: whiteCase #1879: blackCase #1880: blackCase #1881: blackCase #1882: whiteCase #1883: blackCase #1884: blackCase #1885: blackCase #1886: blackCase #1887: blackCase #1888: blackCase #1889: whiteCase #1890: whiteCase #1891: whiteCase #1892: whiteCase #1893: whiteCase #1894: blackCase #1895: blackCase #1896: whiteCase #1897: blackCase #1898: blackCase #1899: whiteCase #1900: whiteCase #1901: blackCase #1902: whiteCase #1903: whiteCase #1904: whiteCase #1905: blackCase #1906: whiteCase #1907: blackCase #1908: whiteCase #1909: blackCase #1910: whiteCase #1911: whiteCase #1912: blackCase #1913: blackCase #1914: whiteCase #1915: whiteCase #1916: blackCase #1917: whiteCase #1918: blackCase #1919: blackCase #1920: whiteCase #1921: whiteCase #1922: blackCase #1923: whiteCase #1924: blackCase #1925: whiteCase #1926: whiteCase #1927: blackCase #1928: whiteCase #1929: blackCase #1930: whiteCase #1931: whiteCase #1932: whiteCase #1933: blackCase #1934: whiteCase #1935: whiteCase #1936: blackCase #1937: whiteCase #1938: blackCase #1939: whiteCase #1940: blackCase #1941: blackCase #1942: whiteCase #1943: blackCase #1944: blackCase #1945: whiteCase #1946: whiteCase #1947: whiteCase #1948: blackCase #1949: whiteCase #1950: whiteCase #1951: blackCase #1952: whiteCase #1953: whiteCase #1954: whiteCase #1955: whiteCase #1956: whiteCase #1957: blackCase #1958: whiteCase #1959: whiteCase #1960: blackCase #1961: whiteCase #1962: whiteCase #1963: whiteCase #1964: whiteCase #1965: blackCase #1966: whiteCase #1967: whiteCase #1968: whiteCase #1969: whiteCase #1970: blackCase #1971: blackCase #1972: whiteCase #1973: blackCase #1974: whiteCase #1975: blackCase #1976: whiteCase #1977: whiteCase #1978: whiteCase #1979: blackCase #1980: blackCase #1981: whiteCase #1982: blackCase #1983: whiteCase #1984: whiteCase #1985: blackCase #1986: blackCase #1987: blackCase #1988: blackCase #1989: whiteCase #1990: blackCase #1991: blackCase #1992: whiteCase #1993: whiteCase #1994: whiteCase #1995: blackCase #1996: whiteCase #1997: blackCase #1998: whiteCase #1999: blackCase #2000: whiteCase #2001: blackCase #2002: blackCase #2003: blackCase #2004: blackCase #2005: white.gitattributes+4
2017/finals/fox_patrols.htmlAdded+82
2017/finals/holes.cppAdded+237
2017/finals/holes.htmlAdded+69
2017/finals/holes.inAdded+3
2017/finals/holes.mdAdded+82
2017/finals/holes.outAdded+30
2017/finals/moles.cppAdded+247
2017/finals/moles.htmlAdded+88
2017/finals/moles.inAdded
2017/finals/moles.mdAdded+75
2017/finals/moles.outAdded+30
2017/finals/patrols.cppAdded+123
2017/finals/patrols.htmlAdded+82
2017/finals/patrols.inAdded+31
2017/finals/patrols.mdAdded+72
2017/finals/patrols.outAdded+30
2017/finals/poles.cppAdded+202
2017/finals/poles.htmlAdded+55
2017/finals/poles.inAdded+3
2017/finals/poles.mdAdded+73
2017/finals/poles.outAdded+30
2017/finals/strolls.cppAdded+170
2017/finals/strolls.htmlAdded+73
2017/finals/strolls.inAdded+3
2017/finals/strolls.mdAdded+70
2017/finals/strolls.outAdded+30
2017/finals/tolls.cppAdded+210
2017/finals/tolls.htmlAdded+100
2017/finals/tolls.inAdded+3
2017/finals/tolls.mdAdded+89
2017/finals/tolls.outAdded+30
2017/quals/592385891651966.jpgAdded

Large File Pointer Details
- SHA256: c7315bb51ccdf27a89722e1f8450896350098ac723b5090d866dcb18b950d148
- Pointer size: 129 Bytes
- Size of remote file: 5.13 kB
2017/quals/fightingthezombie.htmlAdded+86
2017/quals/fightingthezombie.inAdded
2017/quals/fightingthezombie.javaAdded+107
2017/quals/fightingthezombie.mdAdded+58
2017/quals/fightingthezombie.outAdded+2005
2017/quals/lazyloading.htmlAdded+78
2017/quals/lazyloading.inAdded
2017/quals/lazyloading.javaAdded+46
2017/quals/lazyloading.mdAdded+63
2017/quals/lazyloading.outAdded+1005
2017/quals/progresspie.htmlAdded+72
2017/quals/progresspie.inAdded+2006
2017/quals/progresspie.javaAdded+46
2017/quals/progresspie.mdAdded+56
2017/quals/progresspie.outAdded+2005
2017/round1/268425761045248.jpgAdded

Large File Pointer Details
- SHA256: 4e6ce55910950fbca3760f460cc8f16dc8db00df79031c7774db9db55aeaea0b
- Pointer size: 129 Bytes
- Size of remote file: 6.3 kB
2017/round1/336634350719298.jpgAdded

Large File Pointer Details
- SHA256: b3251cba7ef4d2ebca4412cc2ea3d9edb8ba31b1c08973867ae636bc6c4dc004
- Pointer size: 129 Bytes
- Size of remote file: 8.43 kB