ICode9

精准搜索请尝试: 精确搜索
  • A1077 Kuchiguse (20 分)2022-02-07 15:00:45

    AC代码 #include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin>>n; cin.ignore(); //吸收\n //输入 bool flag=true; char ans[257]; //*测试点3:数组大小 for(int i=0;i<n;i++){ char word

  • 1077 Kuchiguse2022-01-29 16:59:44

    1077 Kuchiguse The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker’s personality. Such a preference is called “Kuchiguse” and is often exaggerated

  • 1077 Kuchiguse (20 分)2021-10-29 13:01:19

    1. 题目 The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker's personality. Such a preference is called "Kuchiguse" and is often exaggerat

  • 1077 Kuchiguse (20 分)2021-10-10 14:02:36

    1077 Kuchiguse (20 分) 题目大意 给定N给字符串,求他们的公共后缀,如果不存在公共后缀,就输出“nai” 基本思路 求公共后缀太麻烦了,我们可以来比较前缀,所以每读入一个的时候都把它反转,这样就可以比较前缀了。 读入第一个字符串ans,求出其长度len1后反转。 然后循环n-1次,读入剩下

  • PAT-A1077 Kuchiguse2021-09-18 19:59:46

    A1077 Kuchiguse (找字符串相同字符串) The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker’s personality. Such a preference is called “Kuchiguse” an

  • 1077 Kuchiguse (20 分)2021-03-01 21:32:06

    The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker's personality. Such a preference is called "Kuchiguse" and is often exaggerated art

  • 1077 Kuchiguse (20 分)2021-02-14 10:34:44

    一眼二分。 注意点: 在读入n之后要使用getchar接收后面的换行符,否则会使for循环内的getline读入这个换行符,导致第一个字符串读取错误。 最后输出答案前要先check一遍 const int N=110; string a[N]; string suffix; int n; bool check(int mid) { suffix=a[0].substr(a[0].s

  • 1077 Kuchiguse2020-01-29 22:03:38

    题目 题意:给定n个字符串,求他们的最长公共后缀。   #include<iostream> using namespace std; int main() { int n; cin>>n; getchar(); string ans=""; getline(cin,ans); for(int i=1; i<n; ++i) { string b; getline(cin,b); string temp="";

  • PAT A1077 Kuchiguse (20 分) 字符串2019-09-01 09:37:13

        题目大意:找出N个字符串的最长公共后缀。     输入第2 ~ N个字符串时,每次将输入的字符串与上一次得到的公共后缀比较即可,这里先将字符串反转处理起来比较方便。比较之后得到新的公共后缀。 AC代码: #include <iostream> #include <algorithm> #include <cstdio> using

  • PAT 1077 Kuchiguse2019-04-26 22:39:09

    1077 Kuchiguse (20 分)   The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker's personality. Such a preference is called "Kuchiguse"

  • [PAT] 1077 Kuchiguse (20 分)Java2019-03-08 20:53:45

    The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker's personality. Such a preference is called "Kuchiguse" and is often exaggerated art

  • 1077 Kuchiguse (20 分)2019-02-24 22:51:14

    1077 Kuchiguse (20 分) The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker's personality. Such a preference is called "Kuchiguse" and

  • 1077 Kuchiguse (20 分)字符串共同后缀2019-01-24 11:47:44

    题目 The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker’s personality. Such a preference is called “Kuchiguse” and is often exaggerated artistical

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有