Codeforces——112A Petya and Strings

这篇博客介绍了Codeforces的一道题目,Petya需要比较两个忽略大小写的字符串的字典序。文章提供输入输出格式、示例,并简单分析了这是一个关于字符串比较和大小写不敏感的问题。
摘要由CSDN通过智能技术生成

小声BB

又过了一天,打了场取证比赛,头昏脑胀,就写写博客不做题了

题干

time limit per test:2 seconds
memory limit per test:256 megabytes
input:standard input
output:standard output

Little Petya loves presents. His mum bought him two strings of the same size for his birthday. The strings consist of uppercase and lowercase Latin letters. Now Petya wants to compare those two strings lexicographically. The letters’ case does not matter, that is an uppercase letter is considered equivalent to the corresponding lowercase letter. Help Petya perform the comparison.

Input

Each of the first two lines contains a bought string. The strings’ lengths range from 1 to 100 inclusive. It is guaranteed that the strings are of the same length and also consist of uppercase and lowercase Latin letters.

Output

If the first string is less than the second one, print “-1”. If t

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值