摘要: 考虑负数: 关于cin,scanf,getchar 速度的比较可参考: https://blog.csdn.net/qq_33248299/article/details/52144485 阅读全文
posted @ 2018-09-07 15:57 StoneXie 阅读(298) 评论(0) 推荐(0) 编辑
摘要: getchar: 逐个字符读入,可以读入一切字符,包括空格符和回车符。这个函数很通用,可以代替以下所有函数。注意getchar连回车符都接受,接受回车符意味着可以判断读入的字符是不是'\n'。但以下所有函数都不接受空格符和回车符。 用法:char ch; ch=getchar();cin: 既可以读 阅读全文
posted @ 2018-09-07 10:54 StoneXie 阅读(1831) 评论(0) 推荐(0) 编辑
摘要: NOIP2017普及组★跳房子 https://blog.csdn.net/C20190102/article/details/78550025 https://blog.csdn.net/qwerty1125/article/details/78634732 洛谷中的一个题解:有思维过程 http 阅读全文
posted @ 2018-09-07 07:43 StoneXie 阅读(168) 评论(0) 推荐(0) 编辑
摘要: NOIP2017普及组★棋盘 https://i.cnblogs.com/EditArticles.aspx?opt=1 阅读全文
posted @ 2018-09-07 07:25 StoneXie 阅读(102) 评论(0) 推荐(0) 编辑