![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维
文章平均质量分 63
00000koi
这个作者很懒,什么都没留下…
展开
-
思维题Menagerie 狼羊
题意大概: 有一圈动物包括狼和羊,每个动物say ‘o’ 或者‘x’ ; 'o'代表say‘o'的动物说他两边的动物是相同的,’x'代表 say‘x'的动物说他两边的动物是不同的; 当然 他们说的不全是对的 羊说的是真话,狼说的是假话, 根据输入的 动物们说的’x‘,’o‘ 推出狼和羊的排列位置。 #include<iostream> #i...原创 2018-12-04 22:19:32 · 188 阅读 · 0 评论 -
Back and Forth 递推
Problem Statement Dolphin resides in two-dimensional Cartesian plane, with the positive x-axis pointing right and the positive y-axis pointing up. Currently, he is located at the point (sx,sy). In...原创 2018-12-13 20:18:02 · 176 阅读 · 0 评论 -
GCD LCM 思维
本渣败在了题意上...哭唧唧 题意: 输入两个数,如果两个数的最小公倍数是第二个数,最大公约数是第一个数,则,输出第一个数和第二个数。否则输出-1. 若两个数满足,最大公约数是第一个数,最小公倍数是第二个数,用代码表示(思维点):最小公倍数除以最大公约数,余数为零。 #include<iostream> #include<cstdio> #include...原创 2018-12-18 19:43:47 · 163 阅读 · 0 评论 -
Pangram
题意:输入字符串,如果有相同的字母出现或者同时出现了大小写,就输出NO, 否则输出YES。 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<queue> #include<vector&g...原创 2018-12-17 20:55:42 · 259 阅读 · 0 评论