4526. strncmp

Easy函数字符串普通指针

时间限制:2000 ms

内存限制:512 MiB

题面

Write version of the library function strncmp, which operate on at most the first nn characters of their argument strings. 1s10001 \leq |s| \leq 1000. Write a program to call strncmp.

样例

输入

udjkwzccacbatxrtfhjbwaccu
udjkwzccacbatxrtfhjbwaccuhibmqhkqjodmmkwkricvaeqwfcdp
11

输出

1

输入

abcd ab
2

输出

1

输入

abcd abd
3

输出

0