1289: N的-2进制表示 摘要:```cpp #include using namespace std; int main() { int i=0,num; char str[128]={'\0',}; …… 题解列表 2023年04月15日 0 点赞 0 评论 364 浏览 评分:9.9
1291: 外星人的密码数字 摘要:```cpp #include #include using namespace std; int main() { string rule,str; cin>>rule…… 题解列表 2023年04月15日 0 点赞 0 评论 499 浏览 评分:9.9
1294: 木瓜地 摘要:```cpp #include using namespace std; int main() { int m,n,a[41][41],i,j,k,l; while(sca…… 题解列表 2023年04月15日 0 点赞 0 评论 430 浏览 评分:9.9
1296: 牛棚回声 摘要:```cpp #include using namespace std; int max_match(string s1, string s2) { int len1=s1.leng…… 题解列表 2023年04月15日 0 点赞 0 评论 465 浏览 评分:9.9
1716: 数据结构-快速排序 摘要:```cpp #include using namespace std; int get_mid(int arr[],int left,int right) { int pivot=…… 题解列表 2023年04月15日 0 点赞 0 评论 545 浏览 评分:9.9
2839: 石头剪刀布 只要有耐心,总能做对 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main(){ //比赛n轮,输入n ,小A的周期长度na,小B的周期长…… 题解列表 2023年04月15日 0 点赞 0 评论 458 浏览 评分:9.9
计算2的幂计算2的幂 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner sc= new Scanner…… 题解列表 2023年04月15日 0 点赞 0 评论 442 浏览 评分:9.9
#include<bits/stdc++.h> using namespace std; int main() { int a; short b; cout< 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a; short b; cout<<sizeof a<<" "<…… 题解列表 2023年04月15日 0 点赞 0 评论 402 浏览 评分:9.9
编写题解 2784: 收集瓶盖赢大奖 摘要:解题思路:定义了两个变量a和b来记录拥有的瓶盖数量。然后,我们使用if语句来检查是否可以兑换大奖。如果a大于等于10或b大于等于20,则可以兑换大奖,输出1;否则,不能兑换大奖,输出0。注意事项:参考…… 题解列表 2023年04月15日 0 点赞 0 评论 458 浏览 评分:9.9
编写题解 2788: 晶晶赴约会 摘要:解题思路:使用Scanner类读入输入的参数day,表示展览的日期。然后通过if-else语句判断该日期是否是晶晶上课的日子,即1、3、5。如果是,则输出"NO"表示晶晶不能接受贝贝的邀请;否则输出"…… 题解列表 2023年04月15日 0 点赞 0 评论 630 浏览 评分:9.9