摘要:
实例:实现输入一句英文后,单词倒序输出,eg:输入“I am a student.”,输出“student. a am I”! 自己面试的时候一道题,这么简单,我竟然不会写,哎!!!算是个教训吧! def reverse_sentence(sentence): words=sentence.spli 阅读全文
摘要:
#include #include #include #define INF 0x3f3f3f3f using namespace std; int a[11]={13,1,45,7,20,4,19,13,40,33,38}; int vis[11]={0}; int dp[11][11]={0}; int main(){ vis[0]=a[0]; for(int i=0;i... 阅读全文