Список вопросов
Как зайти в Даркнет?!
25th January, 01:11
184
0
Как в tkinter из поля ввода Entry получить значение в одну переменную и обновить строку кнопкой, затем получить ещё одно введённое значение и затем сложить их. Ниже пример кода
21st July, 19:00
1538
0
Программа, которая создает фейковые сервера в поиске игровых серверов CS 1.6 Steam
21st March, 17:43
1159
0
Очень долго работает Update запрос Oracle
27th January, 09:58
1067
0
не могу запустить сервер на tomcat HTTP Status 404 – Not Found
21st January, 18:02
1042
0
Где можно найти фрилансера для выполнения поступающих задач, на постоянной основе?
2nd December, 09:48
1083
0
Разработка мобильной кроссплатформенной военной игры
16th July, 17:57
1879
0
период по дням
25th October, 10:44
4098
0
Пишу скрипты для BAS только на запросах
16th September, 02:42
3861
0
Некорректный скрипт для закрытия блока
14th April, 18:33
4787
0
прокидывать exception в блоках try-catch JAVA
11th March, 21:11
4526
0
Помогите пожалуйста решить задачи
24th November, 23:53
6281
0
Не понимаю почему не открывается детальное описание продукта
11th November, 11:51
4490
0
Нужно решить задачу по программированию на массивы
27th October, 18:01
4574
0
Метода Крамера С++
23rd October, 11:55
4473
0
помогите решить задачу на C++
22nd October, 17:31
4143
0
Помогите решить задачу на python с codeforces
22nd October, 11:11
4617
0
Python с нуля: полное руководство для начинающих
18th June, 13:58
2742
0
По разделам
 Решение задачи File 51
Даны три файла вещественных чисел с именами S1, S2 и S3, элементы которых упорядочены по убыванию. Объединить эти файлы в новый файл с именем S4 так, чтобы его элементы также оказались упорядоченными по убыванию.
Код (Pascal)
program File51; var S1,S2,S3,S4: String; F1,F2,F3,F4: File of Real; El1,El2,El3:Real; File1end,File2end,File3end:boolean; Function comparison(A,B,C:Real; Ba,Bb,Bc:Boolean): Boolean; begin if not(Ba) and not(Bb) and not(Bc) then if (A>=B) and (A>=C) then comparison:=true else comparison:=false else if not(Ba) and not(Bb) and Bc then if (A>=B) then comparison:=true else comparison:=false else if not(Ba) and Bb and not(Bc) then if (A>=C) then comparison:=true else comparison:=false else if not(Ba) and Bb and Bc then comparison:=true else comparison:=false; end; begin Write('S1: '); Readln(S1); Write('S2: '); Readln(S2); Write('S3: '); Readln(S3); Write('S4: '); Readln(S4); Assign(F1,S1); Assign(F2,S2); Assign(F3,S3); Assign(F4,S4); Reset(F1); Reset(F2); Reset(F3); ReWrite(F4); Read(F1,El1); Read(F2,El2); Read(F3,El3); File1end:=false; File2end:=false; File3end:=false; while (not (File1end) or not(File2end) or not(File3end)) do begin if comparison(El1,El2,El3,File1end,File2end,File3end) then begin Write(F4,El1); if not(eof(F1)) then Read(F1,El1) else File1end:=true; end else if comparison(El2,El1,El3,File2end,File1end,File3end) then begin Write(F4,El2); if not(eof(F2)) then Read(F2,El2) else File2end:=true; end else if comparison(El3,El1,El2,File3end,File1end,File2end) then begin Write(F4,El3); if not(eof(F3)) then Read(F3,El3) else File3end:=true; end; end; Close(F1); Close(F2); Close(F3); Close(F4); Readln; end.
File. Абрамян
| File 1 | Просмотров: 4645 |
| File 2 | Просмотров: 3925 |
| File 3 | Просмотров: 1869 |
| File 4 | Просмотров: 2381 |
| File 5 | Просмотров: 1792 |
| File 6 | Просмотров: 1599 |
| File 7 | Просмотров: 1407 |
| File 8 | Просмотров: 1866 |
| File 9 | Просмотров: 1117 |
| File 10 | Просмотров: 1636 |
| File 11 | Просмотров: 1146 |
| File 12 | Просмотров: 1294 |
| File 13 | Просмотров: 1124 |
| File 14 | Просмотров: 1010 |
| File 15 | Просмотров: 917 |
| File 16 | Просмотров: 1158 |
| File 17 | Просмотров: 1343 |
| File 18 | Просмотров: 939 |
| File 19 | Просмотров: 812 |
| File 20 | Просмотров: 992 |
| File 21 | Просмотров: 846 |
| File 22 | Просмотров: 1015 |
| File 23 | Просмотров: 874 |
| File 24 | Просмотров: 870 |
| File 25 | Просмотров: 926 |
| File 26 | Просмотров: 901 |
| File 27 | Просмотров: 767 |
| File 28 | Просмотров: 1021 |
| File 29 | Просмотров: 789 |
| File 30 | Просмотров: 868 |
| File 31 | Просмотров: 772 |
| File 32 | Просмотров: 807 |
| File 33 | Просмотров: 876 |
| File 34 | Просмотров: 883 |
| File 35 | Просмотров: 676 |
| File 36 | Просмотров: 772 |
| File 37 | Просмотров: 654 |
| File 38 | Просмотров: 735 |
| File 39 | Просмотров: 749 |
| File 40 | Просмотров: 658 |
| File 41 | Просмотров: 708 |
| File 42 | Просмотров: 871 |
| File 43 | Просмотров: 652 |
| File 44 | Просмотров: 661 |
| File 45 | Просмотров: 721 |
| File 46 | Просмотров: 630 |
| File 47 | Просмотров: 762 |
| File 48 | Просмотров: 880 |
| File 49 | Просмотров: 773 |
| File 50 | Просмотров: 802 |
| File 51 | Просмотров: 784 |
| File 52 | Просмотров: 809 |
| File 53 | Просмотров: 640 |
| File 54 | Просмотров: 618 |
| File 55 | Просмотров: 691 |
| File 56 | Просмотров: 758 |
| File 57 | Просмотров: 594 |
| File 58 | Просмотров: 737 |
| File 59 | Просмотров: 691 |
| File 60 | Просмотров: 1196 |