网站首页 站内搜索

搜索结果

查询Tags标签: 321,共有 6条记录
  • [AcWing 321] 棋盘分割

    点击查看代码 #include<iostream> #include<cstring> #include<cmath>using namespace std;typedef long long LL;const int N = 10, M = 20; const double INF = 1e9;int n, m = 8; int s[N][N]; double f[N][N][N][N][M]; double xx;int front_sum(in…

    2022/7/9 23:20:25 人评论 次浏览
  • P1012 [NOIP1998 提高组] 拼数 [普及-]

    https://www.luogu.com.cn/problem/P1012涉及知识点:字符串,排序橙色题代码:#include<iostream> #include<string> #include<algorithm>//提供sort using namespace std; string s[25];//不多说 int n;//限制数字个数 bool cmp(string a,string b) {r…

    2022/7/6 23:30:06 人评论 次浏览
  • PAT (Advanced Level) Practice 1038 Recover the Smallest Number (30 分) 凌宸1642

    PAT (Advanced Level) Practice 1038 Recover the Smallest Number (30 分) 凌宸1642 题目描述: Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we can recov…

    2021/8/21 6:06:03 人评论 次浏览
  • PAT (Advanced Level) Practice 1038 Recover the Smallest Number (30 分) 凌宸1642

    PAT (Advanced Level) Practice 1038 Recover the Smallest Number (30 分) 凌宸1642 题目描述: Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we can recov…

    2021/8/21 6:06:03 人评论 次浏览
  • 编写程序输入实现123->321

    #include<iostream>using namespacestd;int main(){int n;cin>>n;do{cout<<n%10;}while(n/=10)return 0;} 思路:这个方法使用了取余和取整的操作,能够实现对一个整型数据逆向输出处理。#include<stdio.h>int main(){int n;scanf("%d"…

    2021/7/30 1:07:12 人评论 次浏览
  • 编写程序输入实现123->321

    #include<iostream>using namespacestd;int main(){int n;cin>>n;do{cout<<n%10;}while(n/=10)return 0;} 思路:这个方法使用了取余和取整的操作,能够实现对一个整型数据逆向输出处理。#include<stdio.h>int main(){int n;scanf("%d"…

    2021/7/30 1:07:12 人评论 次浏览
扫一扫关注最新编程教程