juk писал(а):
Необходимо посчитать 1 (единицы) в вертикальных строках списка.И если встречается количество непрерывно идущих 1 более 60, выдать сообщение.
Tad, я насчитал 40 столбцов с единицами, а почему у тебя 28?
Add(Math,3451689,602,154)
{
ResultType=0
Point(doClear)
link(onResult,16411786:doCompare,[])
link(Op1,3451689:Result,[(608,142)(596,142)(596,198)(608,198)])
}
Add(StrList,900704,343,98)
{
Strings=#74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000011111111111111111111111111111111111111111111111111101|74:00000000000000000000000000011111111111111111111111111111111111111111111101|74:00000000000000000000000000011111111111111111111111111111111111111111111101|74:00000000000000000000000000011111111111111111111111111111111111111111111101|74:00000000000000000000000000011111111111111111111111111111111111111111111101|74:00000000000000000000000000011111111111111111111111111111111111111111111101|74:00000000000000000000000000011111111111111111111111111111111111111111111101|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:00000000000000000000000000011111111111111111111111111111111111111100000001|74:01111111111111000000011111111111111111111111111111111111111111111100000001|74:01111111111111000000011111111111111111111111111111111111111111111100000001|74:01111111111111000000011111111111111111111111111111111111111111111100000001|74:01111111111111000000011111111111111111111111111111111111111111111100000001|74:01111111111111000000011111111111111111111111111111111111111111111100000001|74:01111111111111000000011111111111111111111111111111111111111111111100000001|74:01111111111111111111111111111111111111111111111111111111111111111100000001|74:01111111111111111111111111111111111111111111111111111111111111111100000001|74:01111111111111111111111111111111111111111111111111111111111111111100000001|74:01111111111111111111111111111111111111111111111111111111111111111100000001|74:01111111111111111111111111111111111111111111111111111111111111111100000001|74:01111111111111111111111111111111111111111111111111111111111111111100000001|74:01111111111111111111111111111111111111111111111000000000000000000000000001|74:01111111111111111111111111111111111111111111111000000000000000000000000001|74:01111111111111111111111111111111111111111111111000000000000000000000000001|74:01111111111111111111111111111111111111111111111000000000000000000000000001|74:01111111111111111111111111111111111111111111111000000000000000000000000001|74:01111111111111111111111111111111111111111111111000000000000000000000000001|
}
Add(For,4822084,294,154)
{
End=74
link(onEvent,2210981:doEnum,[])
}
Add(ArrayEnum,2210981,357,154)
{
link(onItem,4536272:doCopy,[])
link(onEndEnum,14920367:doWork2,[])
link(Array,900704:Array,[])
}
Add(Copy,4536272,427,154)
{
Count=1
link(onCopy,14678914:doCompare,[(471,160)(471,139)])
link(Position,4822084:Position,[(440,132)(409,132)(409,198)(300,198)])
}
Add(Button,7588959,182,84)
{
Left=20
Top=25
link(onClick,14779296:doEvent1,[])
}
Add(Hub,14779296,231,84)
{
OutCount=3
link(onEvent1,6216016:doClear,[(759,90)(759,167)])
link(onEvent2,14920367:doWork1,[(550,97)])
link(onEvent3,4822084:doFor,[(275,104)(275,160)])
}
Add(If_else,16411786,651,154)
{
Type=2
Op2=Integer(60)
link(onTrue,11292532:doEvent1,[])
AddHint(18,-19,27,13,Op2)
}
Add(Math,6216016,784,154)
{
Op2=1
ResultType=0
Point(doClear)
link(onResult,6654526:doText,[])
link(Op1,6216016:Result,[(790,142)(778,142)(778,198)(790,198)])
}
Add(Hub,11292532,700,154)
{
link(onEvent1,6216016:doOperation,[])
link(onEvent2,13889574:doWork2,[(730,167)(730,219)])
}
Add(Label,6654526,833,154)
{
Left=100
Top=25
Width=75
}
Add(HubEx,13889574,525,213)
{
Angle=2
link(onEvent,2210981:doStop,[(331,219)(331,167)])
}
Add(HubEx,14920367,546,161)
{
link(onEvent,3451689:doClear,[])
}
Add(If_else,14678914,483,133)
{
Op2=Integer(1)
link(onTrue,3451689:doOperation,[(559,139)(559,160)])
link(onFalse,13889574:doWork1,[(529,146)])
}