belfastqiu

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  5 随笔 :: 0 文章 :: 0 评论 :: 48 阅读

合集-晴问算法的做题记录

摘要:这是入门篇的第一题 图1:题目图像 #include <stdio.h> int Mod(int n){ int a,b=2; // a是用来递归的 if(n==0) return 1; a = Mod(n-1); return ((a%1007)*(2%1007)) % 1007; } int m 阅读全文
posted @ 2025-02-15 16:13 Belfast_Qiu 阅读(1) 评论(0) 推荐(0) 编辑

摘要:1.首字母大写题 图1:首字母大写 #include <stdio.h> int main(){ char s[1000][11]; int num=0; while(scanf("%s",s[num]) != EOF){ num++; } for(int i=0;i<num;i++){ s[i][ 阅读全文
posted @ 2025-02-19 17:34 Belfast_Qiu 阅读(1) 评论(0) 推荐(0) 编辑

摘要:1.八次翻转 图1:八次翻转 #include <iostream> #include <string> #include <algorithm> using namespace std; int main() { char s[1001]; scanf("%s",s); for (int i = 阅读全文
posted @ 2025-02-22 10:32 Belfast_Qiu 阅读(2) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示