-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bab4c8e
Showing
4 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
утомительный | ||
вводить, навязывать | ||
переговоры | ||
намеренно | ||
снисходительно | ||
быть начеку | ||
игнорировать | ||
квалифицированный | ||
определить, указать местоположение | ||
тупик | ||
мощный | ||
подсознание | ||
средство | ||
последнее средство | ||
дополнение к чему-либо | ||
случайный | ||
избегать | ||
оператор | ||
слепой | ||
усложнять | ||
малейший | ||
группироваться | ||
соседство | ||
внесенные изменения | ||
вероятность | ||
быть склонным, подверженным к чему-либо | ||
подтекст, скрытый смысл | ||
тщательно | ||
строгий | ||
регрессивный | ||
вызывать | ||
формулировать | ||
соотношение | ||
побочный эффект | ||
таким образом | ||
разработка | ||
учитывая, что | ||
этап, стадия | ||
логически обосновывать | ||
время от времени | ||
сопутствовать | ||
возникать | ||
признак | ||
небрежный | ||
остерегаться | ||
заменять | ||
бросать | ||
вдохновение | ||
разрушаться, потерпеть неудачу | ||
пример, экземпляр | ||
психологический | ||
очевидный | ||
подозрительный | ||
подсказка | ||
возможность |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Some tools to check words |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#include <iostream> | ||
#include <cstdlib> | ||
#include <string> | ||
#include <cstdio> | ||
#include <vector> | ||
#include <ctime> | ||
#include <algorithm> | ||
#include <set> | ||
|
||
using namespace std; | ||
|
||
vector <string> v; | ||
|
||
int main() { | ||
srand(time(0)); | ||
|
||
string s; | ||
int n = 0; | ||
|
||
while (getline (cin, s)) { | ||
v.push_back(s); | ||
n++; | ||
} | ||
|
||
vector <char> used(n + 1, 0); | ||
used[n] = 1; | ||
int q = 0; | ||
|
||
while (q != n) { | ||
int num = n; | ||
|
||
while (used[num]) { | ||
num = rand () % n; | ||
} | ||
|
||
used[num] = 1; | ||
cout << v[num] << endl; | ||
q++; | ||
} | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
if ! g++ -o2 -Wall main.cpp -o main | ||
then | ||
exit | ||
fi | ||
|
||
rm -f generated | ||
rm -f bad | ||
./main < words > generated | ||
declare -a s | ||
((n = 0)) | ||
|
||
while read line | ||
do | ||
s[n]=$line | ||
((n++)) | ||
done < generated | ||
|
||
((r = 0)) | ||
|
||
for ((i = 0; i < n; i++)) | ||
do | ||
echo ${s[$i]} | ||
read good | ||
|
||
if [[ $good == "0" ]] | ||
then | ||
((r++)) | ||
echo ${s[$i]} >> bad | ||
fi | ||
done | ||
|
||
if ((r == 0)) | ||
then | ||
echo "You are awesome!" | ||
fi | ||
|
||
rm -f main | ||
rm -f generated |