This file contains hidden or 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
const INF = 1002001; | |
var R, checkR: Longint | |
var N, a, p7, p2, p14, p, i: Integer; | |
Begin | |
readln(N); | |
for i := 0 to (N - 1) do begin | |
readln(a); |
This file contains hidden or 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
const | |
n = 6; | |
var | |
a: array[1..m] of integer; | |
n, i, j, m1, m2, b: integer; | |
min: longint; | |
begin | |
readln(n); |
This file contains hidden or 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
for i := 0 to (N - 1) do begin | |
for j := 0 to (N - 1) do begin | |
if(a[i, j] <> a[j, i]) then begin | |
writeln('Не является'); | |
exit; | |
end; | |
end; | |
end; | |
writeln('Является'); |
This file contains hidden or 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
var N, sum, back, i, j, c, tr: Integer; | |
var str: String; | |
var ar: array[0..999] of Integer; | |
Begin | |
back := 0; | |
for i := 0 to 999 do | |
ar[i] := -1; | |
readln(N); | |
This file contains hidden or 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
type sName = record | |
str: String; | |
used: Integer; | |
end; | |
var N, i, j: Integer; | |
var str: String; | |
var def: sName; | |
var ar: array[0..99] of sName; | |
var sAr: array of String; |
This file contains hidden or 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
var N, K, i, j, apTime, freeTime: Integer; | |
var str, sName: String; | |
var ar: array of String; | |
var cells: array[0..999] of Integer; | |
function getTime(time: String): Integer; | |
var arCache: array of String; | |
var valH, valM, tr: Integer; | |
begin | |
arCache := time.Split(':'); |
This file contains hidden or 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
var | |
N, i, p, j, minEven, minOdd, minComp: Integer; | |
var | |
a: array[1..6] of Integer; | |
begin | |
readln(N); | |
minEven := 1002; | |
minOdd := 1001; | |
minComp := 1003002; |
This file contains hidden or 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
var c: array[0.. 19] of char; | |
var x: char; | |
var i, d: integer; | |
Begin | |
for i := 0 to 19 do // Заполняем массив шарпами. | |
c[i] := '#'; // В данном случае символ шарп будет означать конец слова. Например ['D', 'i', 'a', 'n', 'a', '#', '#', ..., '#'] | |
d := 0; | |
i := 0; |
This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
int main() { | |
int sum1 = 0, sum2 = 0, sum3 = 0, n, a, b, modA, modB, s1, s2, s3; | |
cin >> n; | |
for(int i = 0; i < n; ++i) { | |
cin >> a >> b; |
This file contains hidden or 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
import java.io.*; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Scanner; | |
public class Main { | |
private static HashMap<String, Integer> map = new HashMap<>(); | |
private static File file = new File( "filename.txt" ); | |
private static void loadData() throws IOException { |