停放在机场上的苏

亚洲城官方网站手机版 1苏-35/苏-37“侧卫-E”苏/俄亚洲城官方网站手机版 2

亚洲城官方网站手机版 3苏-30/苏-33“侧卫” 停放在机场上的苏。苏/俄亚洲城官方网站手机版 4

  格军方还表示,已经击落至少5架俄罗丝战机。而俄新网的新闻说,俄罗斯装甲部队已经进来南奥塞梯首府茨欣瓦利。

亚洲城官方网站手机版,E – Pretty Poem
  • 名称:苏-35/苏-37“侧卫-E” 全天候防空战斗机
  • 首飞时间:一九八六年1月三日
  • 研发单位:苏霍伊设计局
  • 气动布局:后掠翼
  • 内燃机数量:双发
  • 飞行速度:亚音速
  • 名称:苏-30/苏-33“侧卫” 制空战斗机和对地攻击机
  • 首飞时间:1987年
  • 研发单位:苏霍伊设计局
  • 气动布局:后掠翼
  • 斯特林发动机数据:双发
  • 飞行速度:超音速
  • 关注度:(4.8分)
ZOJ – 3818

Poetry is a form of literature that uses aesthetic and rhythmic
qualities of language. There are many famous poets in the contemporary
era. It is said that a few ACM-ICPC contestants can even write poetic
code. Some poems has a strict rhyme scheme like “ABABA” or “ABABCAB”.
For example, “niconiconi” is composed of a rhyme scheme “ABABA” with A =
“ni” and B = “co”.

More technically, we call a poem pretty if it can be decomposed into one
of the following rhyme scheme: “ABABA” or “ABABCAB”. The symbol A, B and
C are different continuous non-empty substrings of the poem. By the way,
punctuation characters should be ignored when considering the rhyme
scheme.

You are given a line of poem, please determine whether it is pretty or
not.

Input
There are multiple test cases. The first line of input contains an
integer T indicating the number of test cases. For each test case:

There is a line of poem S (1 <= length(S) <= 50). S will only
contains alphabet characters or punctuation characters.

Output
For each test case, output “Yes” if the poem is pretty, or “No” if not.

Sample Input
3
niconiconi~
pettan,pettan,tsurupettan
wafuwafu
Sample Output
Yes
Yes
No


题意:如若一首诗符合ABABA或ABABCAB那么是一首好诗,判断一首诗是还是不是为好诗,不考虑标点符号

解法:枚举法,枚举A和B的长度,不用枚举C的尺寸,C的尺寸能够透过AB求出,然后切割字符串,得到A、B、C,尽管输入字符串S=A+B+A+B+A,或S=A+B+A+B+C+A+B,则满足好诗的标准。注意A、B、C不雷同且长度大于0。

代码:

#include<iostream>
#include<string>
#include<cstring>
using namespace std;
char a[60];
string b;
bool com1()
{
    int n=b.length();
    for(int i=1;i<=n/3;i++){
        for(int j=1;j<=n/2;j++){
            if(i*3+j*2==n){
                string A,B;
                A=b.substr(0,i);
                B=b.substr(i,j);
                if(A+B+A+B+A==b&&A!=B)
                    return true;
            }
        }
    }
    return false;
}
bool com2()
{
    int n=b.length();
    for(int i=1;i<=n/3;i++){
        for(int j=1;j<=n/3;j++){
            if(i*3+j*3<n){
                string A,B,C;
                A=b.substr(0,i);
                B=b.substr(i,j);
                C=b.substr(i+j+i+j,n-i-j-i-j-i-j);
                if(A+B+A+B+C+A+B==b&&A!=B&&A!=C&&B!=C)
                    return true;
            }
        }
    }
    return false;
}
int main()
{
    int num;
    cin>>num;
    while(num--){
        cin>>a;
        b="";
        int n=strlen(a);
        for(int i=0;i<n;i++)
            if(isalpha(a[i]))
                b+=a[i];
        com1()||com2()?cout<<"Yes"<<endl:cout<<"No"<<endl;      
    }
}

苏-35

武器装备

  • (1)内置武器:1门30分米GSH-30-1机炮;
    (2)挂载点:11个(外加翼尖挂载点);
    (3)最大载弹量:8000十两(17635磅);
    (4)典型武器:空对空导弹、(奥迪Q5-27“白杨”、奥迪Q5-73“射手”、路虎极光-77“游蛇”);空对地导弹(Kh-2玖 、Kh-3壹 、Kh-59);Raduga 3M80E反舰导弹;常规炸弹;火箭;外挂式油箱。
网站地图xml地图