АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

664. Incoincident symbol

Time Limit: 1 seconds
Memory Limit:1000KB
Points:2
View Problem Statistics Submit Problem added Undefined

Incoincident symbol.

Two lines of the any text are entered. To find a position of the first incoincident symbol. To provide and cases when incoincident symbols are not present. Used переменные:n - the counter for conterminous elements of a line; i - the counter for elements of a line; s1, s2 - lines entered by the user.

 

Entrance data

Two lines of the text

 

Target data

Number of the first incoincident symbol

 

Entrance data

Interesting film

Interesting cinema

 

Target data

Number of the first incoincident symbol = 9

 

The author: Chupchicova Yulia


View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
645. Givenned number a,b,c to define how much of them equal 664. 668. Number input 665. Output of elements 648. Perimetr of a triangle
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.109 sec.
© Copyright VSTU, AVT, Nosov D.A.