Fix stu[id fortran bug
This commit is contained in:
parent
a9ef0dce69
commit
708e2caf3c
@ -11,10 +11,10 @@ program problem
|
||||
|
||||
read(unit) input
|
||||
|
||||
do i=1, input_file_size
|
||||
do i=0, input_file_size - 1
|
||||
if (input(i:i) == "(") then
|
||||
floor = floor + 1
|
||||
else
|
||||
else if (input(i:i) == ")") then
|
||||
floor = floor - 1
|
||||
end if
|
||||
end do
|
||||
|
Loading…
Reference in New Issue
Block a user