摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stddef.h> #include <ctype.h> typedef long long ll; int main() { // please write y 阅读全文
posted @ 2020-05-15 20:48 wusheng_z 阅读(169) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; int XtoDec(string s,int x){///x进制字符串转化为10进制 int ans = 0; for(int i=0;i<s.length();i++){ if(isdigit(s[i]) 阅读全文
posted @ 2020-05-13 09:26 wusheng_z 阅读(263) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); String str; String[] num = {"零 阅读全文
posted @ 2020-05-12 12:14 wusheng_z 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 解法:总和为奇数必为false,如果数字的某种组合能够等于 所有数字的总和/2。 #include <bits/stdc++.h> using namespace std; bitset<50005> flag; ///bitset 在 bitset 头文件中, ///是一种类似数组的结构, /// 阅读全文
posted @ 2020-05-03 15:47 wusheng_z 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<stdio.h> #include<string.h> using namespace std; typedef long long ll; string now; ll n; int main() { while(~scanf("%lld", 阅读全文
posted @ 2020-05-03 14:25 wusheng_z 阅读(151) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<math.h> int main(){ long long n,m,i,x,s; int arr[16] = {2,1,2,3,4,5,6,7,8,9,8,7,6,5,4,3}; scanf("%lld",&n); m = sqrt(2*n);/ 阅读全文
posted @ 2020-05-03 11:02 wusheng_z 阅读(175) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<string.h> int arr[110]; int sum = 0; int dp[201][402]; int num[201]; int main() { int x; char ch; int len=0; while(~scanf(" 阅读全文
posted @ 2020-04-30 22:11 wusheng_z 阅读(134) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; public class Main { static int ans; static int num[]; public static void main(String args[]) { Scanner scan = new Scanner(System.i 阅读全文
posted @ 2020-04-30 18:23 wusheng_z 阅读(179) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); String line; while (scan.hasNe 阅读全文
posted @ 2020-04-30 09:24 wusheng_z 阅读(186) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; public class Main { static int dr[]={0,1,0,-1};///向左加,向右减 static int dc[]={1,0,-1,0};///向下加,向上减 static int arr[][]; static int n,m 阅读全文
posted @ 2020-04-29 21:23 wusheng_z 阅读(209) 评论(0) 推荐(0) 编辑