摘要:
题目大意:在原串上,将字符串中‘ ’转化成%20后输出。 思路:计算出空格个数,从后往前处理 阅读全文
摘要:
用常量字符串去赋值给指针和初始化数组的时候是不一样的。 阅读全文
摘要:
要求描述:给你一个二维矩阵,每行从左到右递增,每列从上往下递增,给你一个val,让你判断值val是否在该矩阵中出现。 思路:从左下角,或者右上角去判断。如左下角,那么如果左下角的数字比val小,那么说明这一列已经不满足条件(因为从上往下递增),如果左下角的数字比val大,那么说明这一行不满足条件(因 阅读全文
摘要:
Suspects Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Description As Sherlock Holmes was investigating a crime, 阅读全文
摘要:
A. Message time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Dr. Moriarty is about to send 阅读全文
摘要:
Bear and Forgotten Tree 3 time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Bear and Forgo 阅读全文
摘要:
Recycling Bottles time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Recycling Bottles time 阅读全文
摘要:
Regular Bridge time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output An undirected graph is ca 阅读全文
摘要:
Divisibility by Eight time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Divisibility by Ei 阅读全文
摘要:
Making Genome in Berland time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Making Genome in 阅读全文