找回密码
 立即注册
搜索
热搜: 代码
查看: 9|回复: 1

第一题76.9分代码

[复制链接]

7

主题

1

回帖

8024

积分

论坛元老

积分
8024
发表于 4 天前 | 显示全部楼层 |阅读模式
#include<bits/stdc++.h>
using namespace std;
int main(){
        string s;
        cin>>s;
        cout<<"Yes";
        return 0;
}

6

主题

10

回帖

747

积分

管理员

积分
747
发表于 4 天前 | 显示全部楼层
#include<bits/stdc++.h>
using namespace std;
string a,b;
bool c=false;
int main(){   
        cin>>a>>b;
        if(a[0]=='#'){
                if(b[0]=='.'&&a[1]=='.') c=true;
        }
        if(a[1]=='#'){
                if(b[1]=='.'&&a[0]=='.') c=true;
        }
        if(b[0]=='#'){
                if(a[0]=='.'&&b[1]=='.') c=true;
        }
        if(b[1]=='#'){
                if(a[1]=='.'&&b[0]=='.') c=true;
        }
        if(c){
                cout<<"No";
        }else{
                cout<<"Yes";
        }
        return 0;
}
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|编程

GMT+8, 2025-10-29 18:55 , Processed in 0.063691 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表