t2z1 t2z2 t2z3 sum
1 USER_1351 20 30 50 100 11 10
2 USER_0528 20 30 50 100 8
3 USER_2123 20 30 43 93 8 ""
4 USER_0045 20 21 50 91 9 -
5 USER_0595 20 30 30 80 8
6 USER_2109 20 30 19 69 8 ""
7 USER_1992 20 30 10 60 11 ó2
8 USER_1905 20 30 10 60 11 '-
9 USER_1986 20 30 10 60 10
10 USER_1882 20 2 29 51 9 ""
11 USER_2003 20 30 0 50 11 ó2
12 USER_1993 ˳ 19 30 1 50 11 - 7
13 USER_0539 ' 20 30 0 50 11 ""
14 USER_1939 ³ 20 30 0 50 10
15 USER_1929 20 30 0 50 8 -
16 USER_1883 20 30 0 50 6
17 USER_2005 ' 18 30 0 48 11 ó2
18 USER_1943 ³ ³ 1 30 9 40 8 10
19 USER_1908 0 30 9 39 8
20 USER_1872 20 5 13 38 9 i
21 USER_1978 0 30 4 34 11 2
22 USER_2040 20 4 9 33 11 2
23 USER_2012 18 4 8 30 11 2
24 USER_0195 ³ 20 0 9 29 11
25 USER_0071 20 4 3 27 2
26 USER_2100 20 4 2 26 2
27 USER_2068 ³ 0 17 9 26 11
28 USER_1915 20 4 0 24 11 5
29 USER_1408 18 6 0 24 11 3
30 USER_1114 ͳ 18 4 2 24 9 3
31 USER_2098 20 2 0 22 8 ʹ1
32 USER_2095 ³ ³ 19 2 0 21 10 - 4
33 USER_2092 ³ 19 2 0 21 11 - . 4
34 USER_1994 8 4 9 21
35 USER_1945 8 7 5 20 11
36 USER_1983 19 0 0 19 11
37 USER_2128 18 0 0 18 9 " - .1, "
38 USER_2010 9 4 2 15 10 '-
39 USER_1975 9 4 2 15 9 '- ع5
40 USER_1249 10 4 0 14 9 '- 5
41 USER_1922 0 4 9 13 11 -
42 USER_2091 10 0 0 10 7
43 USER_1904 1 4 4 9 11 - 3
44 USER_1982 7 0 2 9 11 2
45 USER_0049 9 0 0 9 11
46 USER_1917 1 4 4 9 11 3
47 USER_1898 2 0 7 9 11 2
48 USER_1979 9 0 0 9 8 '- ع5
49 USER_0667 2 4 2 8 11
50 USER_2030 0 0 7 7 10 '- I-III . 5
51 USER_1903 1 4 2 7 7 - .3
52 USER_2084 ³ 2 0 3 5 11
53 USER_1969 0 4 0 4 8 '- ع5
54 USER_2050 2 2 0 4 9 ˳ 17
55 USER_2000 0 2 0 2 10 - 4
56 USER_2007 0 2 0 2
57 USER_1914 1 0 0 1 11 1
58 USER_1935 1 0 0 1 11 "-
59 USER_1959 0 0 0 0 11 '- 5
60 USER_1967 0 0 0 0 ؠ -. 9 \"
61 USER_1901 0 0 0 0 11 ʠ
62 USER_1185 0 0 0 0
63 USER_1950 ³ 0 0 0 0
64 USER_2104 0 0 0 0 11
65 USER_1008 ³ 0 0 0 0 11
66 USER_2051 0 0 0 0 9 ˳ 17
67 USER_2078 0 0 0 0 ""
68 USER_2085 0 0 0 0 11
69 USER_1958 0 0 0 0 11 '- 5
70 USER_1961 ³ 0 0 0 0 9 '- 5
71 USER_2103 0 0 0 0 11 ʹ1
72 USER_2097 0 0 0 0 1
73 USER_1947 0 0 0 0 11
74 USER_2052 0 0 0 0 11 -
75 USER_1960 ij 䳿 0 0 0 0 11 - .
76 USER_2081 0 0 0 0 10 l-lll 4
77 USER_2131 0 0 0 0 9
78 USER_2144 0 0 0 0 .
79 USER_2004 0 0 0 0 11 ó 2
80 USER_2037 0 0 0 0 11 " - , "
81 USER_2011 ij 0 0 0 0 10 -
82 USER_1963 0 0 0 0 8 '- 5
83 USER_1919 ³ 0 0 0 0 ˳
84 USER_2016 0 0 0 0
85 USER_1974 0 0 0 0 8 '- ع5
86 USER_2036 0 0 0 0
87 USER_1968 0 0 0 0 12
88 USER_1940 ³ 0 0 0 0 11 -
89 USER_1426 0 0 0 0
90 USER_2107 0 0 0 0
91 USER_1953 0 0 0 0 11 " - ., "
92 USER_2064 0 0 0 0
93 USER_2021 0 0 0 0 11 -
94 USER_1409 ij 0 0 0 0
95 USER_2059 0 0 0 0 9 " I-III , " 2
96 USER_1920 0 0 0 0 9 ˳ 17
97 USER_2106 0 0 0 0 10 ʹ1
98 USER_1926 ³ 0 0 0 0 11 -
99 USER_2002 0 0 0 0 11 ó2
100 USER_2028 Ѻ 0 0 0 0
101 USER_2013 ѳ 0 0 0 0 9 3
102 USER_2079 0 0 0 0 10 '- ó
103 USER_1921 0 0 0 0 11 - 3
104 USER_1952 0 0 0 0 10 -
105 USER_2006 0 0 0 0 10 곿 -
106 USER_2136 0 0 0 0 11 I-III .1
107 USER_1937 0 0 0 0 -
108 USER_1957 0 0 0 0 10 I-III 3
109 USER_2065 0 0 0 0 9 ""
110 USER_2099 ³ 0 0 0 0 10 - . 4
111 USER_2053 20 30 50 100 ˲
112 USER_2129 20 30 50 100 ˲
113 USER_2119 20 30 50 100 ˲
114 USER_2055 20 30 50 100 ˲
115 USER_1902 20 30 50 100 ˲
116 USER_2047 20 30 50 100 ˲
117 USER_2049 20 30 50 100 ˲
118 USER_2056 20 30 50 100 ˲
119 USER_2048 20 30 50 100 ˲
120 USER_2054 20 30 50 100 ˲
121 USER_2044 20 30 50 100 ˲
122 USER_2039 20 30 50 100 ˲
123 USER_2120 20 30 50 100 ˲
124 USER_2045 20 11 50 81 ˲
125 USER_2117 20 30 10 60 ˲
126 USER_2026 10 4 7 21
127 USER_2043 Shevchenko Sergiy 20 0 0 20 ˲
128 USER_2038 20 0 0 20 ˲
129 USER_2116 7 2 2 11 \' - 2
130 USER_2134 USER_2134 0 0 0 0
131 USER_2025 0 0 0 0

 

"T2Z1"

 

"T2Z2"

 

"T2Z3"

:
T -
W - -, Crt.
R -
N - '
P -

"

T2Z1

/* GCC */
#include<fstream>
#include<iostream>
using namespace std;
int main()
	{
		ifstream fi; fi.open("price.in");
		ofstream fo; fo.open("price.out");
		int a[50001];
		long x,f=0;
		for(long i=0;i<50001;i++)a[i]=0;
		while(!fi.eof()){fi>>x;a[x]++;}
		for(long i=0;i<50001;i++)if (a[i]==1){f=1;fo<<i<<'\n';break;}
		if (f==0){fo<<"No"<<'\n';}
		fi.close();fo.close(); 
	}

	  
	   

 

T2Z2

 

		/* GCC */
#include<fstream>
#include<math.h>
using namespace std;
int main()
	{
		ifstream fi; fi.open("square.in");
		long int n=3;
		fi>>n;
		long long x0,y0,x1,y1,x2,y2;
		long long s=0;
		fi>>x0>>y0;
		x1=x0;y1=y0;
		for(long i=1;i<n;i++)
			{
				x2=x1; y2=y1;
				fi>>x1>>y1;	
				s=s+(x1-x2)*(y1+y2);
			}
		x2=x1;y2=y1;x1=x0;y1=y0;
		s=abs(s+(x1-x2)*(y1+y2));
		ofstream fo; fo.open("square.out");
		if(s%2==0) fo<<s/2<<'.'<<'0'<<'\n'; 
			else fo<<s/2<<'.'<<'5'<<'\n';
		fi.close();fo.close();
	}	
			
		 

 

T2Z3

	/* GCC */
#include<fstream>
#include<iostream>
using namespace std;
int main()
	{
		long N,E,F,k;
		long p[501],m[501], max[10001],min[10001];
		for(int i=0;i<10001;i++) {max[i]=0; min[i]=0;}
		for(int i=0;i<501;i++) {m[i]=0; p[i]=0;}
		ifstream fi;fi.open("market.in");
		ofstream fo;fo.open("market.out");
		fi>>E>>F>>N;
      for (int i=1;i<=N;i++) fi>>p[i]>>m[i];
     	fi.close(); k=F-E;
	   for (int i=1;i<=k;i++)
   	{
      	min[i]=-1;max[i]=-1;
      	for(int j=1;j<=N;j++)
      	{
         	if ((i-m[j])>=0) 
         	{
            	if ((min[i-m[j]])!=-1) 
            	{
               	if ((min[i]==-1)||(min[i]>(min[i-m[j]]+p[j]))) min[i]=min[i-m[j]]+p[j];
               	if ((max[i]==-1)||(max[i]<(max[i-m[j]]+p[j]))) max[i]=max[i-m[j]]+p[j];              
               }
         	}
      	}
      }
  	if (max[k]==-1)fo<"This is impossible."<<'\n';
  	else fo<<max[k]<<' '<<min[k]<<'\n';
  fo.close();
}