1.5.2.1. , . , , .
:
-1
:
1.5.2.2. , . ( ).
:
:
1.5.2.3. , . .
:
:
7
1.5.2.4. , . .
:
:
1.5.2.5. , . .
:
:
1.5.2.6. , , . , ʻ, , һ .
:
([]{[]})
:
OK
1.5.2.7. . .
:
,
:
,
1.5.2.8. , . W, . , . W.
:
:
1.5.2.9. . .
:
3 15
:
1.5.2.10. () . , , һ.
:
ABBA
BA
:
1.5.2.11. . , , . , һ.
:
ABRACADABRA
:
1.5.2.12. (). , . , -1. 0.
:
ABRACADABRA
BRA
:
1.5.2.13. (). .
:
ABRACADABRA
BRA
:
1.5.2.14. . , - , , . n (n <= 1000). n , . 20. . 100000 .
|
|
:
the
word
this
is
world
thit is hte uorlt
:
hte
uorlt
1.5.2.16. . , . n (n <= 1000). n , . 20. . 26 .
:
the
word
this
is
world
ihostwr
:
this
word
is
1.5.2.17. , . .
:
We are the world
:
We are world
1.5.2.18. , , . .
:
We are world
the
:
We are the world
1.5.2.19. , . .
:
We are the world
1 3
:
the are We world
1.5.2.20. . , 80 (, WORD). , (, RDOW, WODR ..). , . , . .
:
WORD
:
WDRO
1.5.2.21. . s = s1s2...sn. k- (k > 0) sk sk = s1s2...sns1s2...sn......s1s2...sn (k ). , abc bbb. k s t ( ), tk = s. , . s, , 1000.
k ≠ 0, |k| < 100001. k > 0, k- s, k < 0, |k| s. , . 1023 , 1023 . NO SOLUTION.
:
abcdabcd
-2
:
abcd
.
1.5.3.1. , . , , .
|
|
:
:
1.5.3.2. , . , , , .
:
())(
:
1.5.3.3. , , . , , . , HELOLEH HTEOLFEOLEH. , .
:
HTEOLFEOLEH
:
HELOLEH
1.5.3.4. ( ) . , ++.
:
int main () /* */
{
return 0; // its result
}
:
int main ()
{
return 0;
}
1.5.3.5. . , , . . - , .
:
2 4
:
1.5.3.6. . . . , (a, b, c, ). -:
1. a
2. baa
3. cbaabaa
4. dcbaabaacbaabaa
, N , N- , 26- . N (1 <= N < 226). , N- .
:
:
w
1.5.3.7. . N . 10000 , . , 5, 8, , 6, 7 8- . . : , , , . K (1 ≤ K ≤ 100) . N (1 ≤ N ≤ 10000), N A B - (0 ≤ A < B ≤ 10000) . / . K , M- Accepted, M- . Wrong Answer.
:
2
3 0 3000 2500 7000 2700 10000
2 0 3000 2700 10000
:
Wrong Answer
Accepted
1.5.3.8. . s sksk+1sk+2s|s|s1s2sk-1 k, |s| - s. s sisi+1sj-1sj i j. a b. a, b. a (1 ≤ |a| ≤ 1000). b (1 ≤ |b| ≤ min(100,|a|)). .
|
|
:
aAaa8aaAa
aAa
:
1.6.
.
.
.
.
, , , ,
.
n. . . 105.
.
( ) , , , .. . 2 : .
.
// C++
# include <iostream>
# include <iomanip>
# include <cstdlib>
using namespace std;
const int N = 100; //
int a [N][N];
int main ()
{
setlocale (LC_ALL, "RUS");
cout << " " << endl;
cout << " , " << endl;
int n;
cin >> n;
for (int i=0; i < n; i++)
for (int j=0; j < n; j++)
cin >> a [i][j];
for (int i=1; i < n; i++)
for (int j=0; j < i; j++)
swap (a [i][j], a [j][i]);
for (int i=0; i < n; i++)
{
for (int j=0; j < n; j++)
cout << setw (5) << a [i][j] << " ";
cout << endl;
}
system ("PAUSE");
return 0;
}
// C#
using System;
class Program
{
static void Main (string [] args)
{
Console.WriteLine (" ");
Console.WriteLine (" , ");
int n = int.Parse (Console.ReadLine ());
int [,] a = new int [n, n];
for (int i=0; i < n; i++)
{
string ss = Console.ReadLine ();
string [] s = ss.Split (' ');
for (int j=0; j < n; j++)
a [i, j] = int.Parse (s [j]);
}
for (int i=1; i < n; i++)
for (int j=0; j < i; j++)
{
int temp = a [i, j];
a [i, j] = a [j, i];
a [j, i] = temp;
}
for (int i=0; i < n; i++)
{
for (int j=0; j < n; j++)
Console.Write (a [i, j] + " ");
Console.WriteLine ();
}
Console.ReadKey ();
}
}