Codeforces801B Valued Keys
来源:互联网 发布:淘宝首页全屏海报尺寸 编辑:程序博客网 时间:2024/06/06 00:54
链接
http://codeforces.com/problemset/problem/801/B
题解
判下是不是
代码
//手速题#include <cstdio>#include <algorithm>#include <cstring>#define maxn 105using namespace std;char x[maxn], z[maxn], y[maxn];int N;int main(){ int i; scanf("%s%s",x+1,z+1); N=strlen(x+1); for(i=1;i<=N;i++) if(z[i]>x[i]) { printf("-1"); return 0; } printf("%s",z+1); return 0;}
0 0
- Codeforces801B Valued Keys
- Codeforces801B Valued Keys
- B. Valued Keys
- B. Valued Keys
- Valued Keys- Codeforce
- Codeforces 801B Valued Keys
- CodeForces 801B Valued Keys
- codeforces 801B Valued Keys
- 0519 G2n#W2B-D Valued Keys
- Codeforces Round #409 (Div. 2) B. Valued Keys
- CF#801 B. Valued Keys(字符串,贪心)
- Codeforces Round #409 (rated, Div. 2, based on VK Cup 2017 Round 2) B. Valued Keys
- CF-Codeforces Round #409 (rated, Div. 2, based on VK Cup 2017 Round 2)-B-Valued Keys
- Keys
- keys
- keys
- keys
- Keys
- POJ 2400 Supervisor, Supervisee (二分图最大权匹配)
- 中山大学软件工程操作系统实验二报告
- D(1909)Perfect Chocolate
- unix环境高级编程.chapter 1.1
- mongodb3.X版本 用户管理
- Codeforces801B Valued Keys
- POJ 2417 baby_step giant_step 小步大步算法 a^x == b(mod n) 求解0<=x<n的值
- 接笔记一,涉及struts2登录的
- 4月份英语总结博客
- 一个小爬虫 从网页获取信息(图片下载)
- C++类之线程管理
- Mysterious Bacteria
- 【Ukey】C#或者Java对Ukey的判断操作
- 前缀中的周期---非优化KMP算法的运用