Problem 2614 --Basic Operations - Lexicographical Comparison

2614: Basic Operations - Lexicographical Comparison

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $39$ 正确数量 $14$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签 STL
Lexicographical Comparison Compare given two sequence A={a0,a1,...,an−1} and B={b0,b1,...,bm−1 lexicographically.
The input is given in the following format. n a0 a1,...,an−1 m b0 b1,...,bm−1 The number of elements in A and its elements ai are given in the first and second lines respectively. The number of elements in B and its elements bi are given in the third and fourth lines respectively. All input are given in integers.
Print 1 B is greater than A, otherwise 0.
3
1 2 3
2
2 4

1
1≤n,m≤1,000 0≤ai,bi≤1,000

推荐代码 查看2614 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$0 $ms] AOJ大管家 436724 2019-06-06 12:48:48
内存最少[$2016 $KB] 刘 涛 338818 2018-12-06 09:12:21
第一AC 计爱玲 281625 2018-10-07 14:05:36
第一挑战 计爱玲 281625 2018-10-07 14:05:36

赛题来源/所属竞赛 会津大学《C++ Programming II》 C++程序设计(高级)

竞赛编号 竞赛名称 竞赛时间 访问比赛