ICode9

精准搜索请尝试: 精确搜索
  • Exercise 25 - even more practice2019-09-29 12:56:12

      def break_words(stuff): """This function will break up words for us.""" words = stuff.split(' ') return words def sort_words(words): """Sorts the words.""" return s

  • 1011 A+B 和 C (15 分)—PAT (Basic Level) Practice (中文)2019-09-17 20:41:27

    1011 A+B 和 C (15 分) 给定区间 [−2 ​31 ​​ ,2 ​31 ​​ ] 内的 3 个整数 A、B 和 C,请判断 A+B 是否大于 C。 输入格式: 输入第 1 行给出正整数 T (≤10),是测试用例的个数。随后给出 T 组测试用例,每组占一行,顺序给出 A、B 和 C。整数间以空格分隔。 输出格式: 对每组测

  • 1001 害死人不偿命的(3n+1)猜想 (15 分)—PAT (Basic Level) Practice (中文)2019-09-15 18:43:13

    1001 害死人不偿命的(3n+1)猜想 (15 分) 卡拉兹(Callatz)猜想: 对任何一个正整数 n,如果它是偶数,那么把它砍掉一半;如果它是奇数,那么把 (3n+1) 砍掉一半。这样一直反复砍下去,最后一定在某一步得到 n=1。卡拉兹在 1950 年的世界数学家大会上公布了这个猜想,传说当时耶鲁大学师生

  • 1002 写出这个数 (20 分)—PAT (Basic Level) Practice (中文)2019-09-15 18:41:06

    1002 写出这个数 (20 分) 读入一个正整数 n,计算其各位数字之和,用汉语拼音写出和的每一位数字。 输入格式: 每个测试输入包含 1 个测试用例,即给出自然数 n 的值。这里保证 n 小于 10 ​100 ​​ 。 输出格式: 在一行内输出 n 的各位数字之和的每一位,拼音数字间有 1 空格,但一行

  • PAT (Basic Level) Practice (中文)1021 个位数统计 (15 分)2019-09-14 18:04:57

    1021 个位数统计 (15 分) 给定一个 k 位整数 N=d​k−1​​10​k−1​​+⋯+d​1​​10​1​​+d​0​​ (0≤d​i​​≤9, i=0,⋯,k−1, d​k−1​​>0),请编写程序统计每种不同的个位数字出现的次数。例如:给定 N=100311,则有 2 个 0,3 个 1,和 1 个 3。 输入格式: 每个

  • PAT (Basic Level) Practice (中文)1022 D进制的A+B (20 分)2019-09-14 18:02:09

    1022 D进制的A+B (20 分) 输入两个非负 10 进制整数 A 和 B (≤2​30​​−1),输出 A+B 的 D (1<D≤10)进制数。 输入格式: 输入在一行中依次给出 3 个整数 A、B 和 D。 输出格式: 输出 A+B 的 D 进制数。 输入样例: 123 456 8 输出样例: 1103 思路 进制转换,

  • PAT (Basic Level) Practice (中文)1018 锤子剪刀布 (20 分)2019-09-13 17:01:54

    大家应该都会玩“锤子剪刀布”的游戏:两人同时给出手势,胜负规则如图所示: 现给出两人的交锋记录,请统计双方的胜、平、负次数,并且给出双方分别出什么手势的胜算最大。 输入格式: 输入第 1 行给出正整数 N(≤10​5​​),即双方交锋的次数。随后 N 行,每行给出一次交锋的信息,即甲、

  • cisco packet tracer practice2019-09-13 14:01:22

    链接: https://pan.baidu.com/s/1V7qkSmFhLojP4MVP1xNh2Q 提取码: q9f4 复制这段内容后打开百度网盘手机App,操作更方便哦 需要用cisco packet tracer 打开文件 cisco packet tracer链接: 链接: https://pan.baidu.com/s/1UhPuSwraR_ZW3kfYlIhzTw 提取码: v53m 复制这段内容

  • advanced mathematics 32019-09-12 18:37:39

    conclusion 1.基本不等式 2. practice 1.例题 2. 1.直接利用基本不等式证明 2.利用拉格朗日中值定理 (2)单调有界利用第一问的结果 conclusion 前提部分极限必存在 整体存&&A存==>B存在 推论

  • dp practice 12019-09-10 21:55:14

    https://codeforces.com/problemset/problem/553/A dp+组合数学 dp[i] 放前i种颜色的方法数 #include<bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e3+7;const ll mod = 1e9+7;int a[N];ll dp[N],f[N];void work(){ f[0]=1; f[1]=1; for(

  • 1008 A+B for Input-Output Practice (VIII)2019-09-05 19:03:49

    #include<stdio.h> int main(){ int num,sum,m,n; scanf("%d",&n); while(n--){ sum=0; scanf("%d",&m); while(m--){ scanf("%d",&num); sum+=num; } if(n==0) printf("%d\n",sum);

  • PAT (Advanced Level) Practice 1048 Find Coins(hash)2019-08-24 20:39:26

    1048 Find Coins (25 分) Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payments. However, there was a special require

  • How to sort HashSet in Java2019-08-24 13:00:25

    How to sort HashSet in Java 方法一:By Converting HashSet to List 方法二:By Converting HashSet to TreeSet import java.util.*; public class HashSortOfSort { public static void main(String[] args) { Set<String> set = new HashSet<>();

  • PAT (Basic Level) Practice (中文) 1002 写出这个数2019-08-21 20:06:06

    题目链接     #include <stdio.h> #include<string.h> int main(){ char a[1002]; int b, c,d,e,g,m[5],n; gets(a); b = 0; c = 0; d = 0; while (a[b] != '\0') { c = c + a[b] - 48; b = b + 1; } for (b = c, n = 0; b; b

  • PAT (Basic Level) Practice (中文) 1003 我要通过!2019-08-21 20:05:41

    题目链接   #include<stdio.h> int qw(char a[]) { int b,c,d; for(c=0;a[c]!='\0';c++){ if(a[c]=='P') break; } for(d=0;a[d]!='\0';d++){ if(a[d]=='T') break; } if(a[d]=='\0

  • 1039 到底买不买 (20 分)C++ PAT (Basic Level) Practice2019-08-17 21:42:03

    1039 到底买不买 (20 分) 小红想买些珠子做一串自己喜欢的珠串。卖珠子的摊主有很多串五颜六色的珠串,但是不肯把任何一串拆散了卖。于是小红要你帮忙判断一下,某串珠子里是否包含了全部自己想要的珠子?如果是,那么告诉她有多少多余的珠子;如果不是,那么告诉她缺了多少珠子。 为

  • PlexPaper Practice2019-07-31 10:06:56

    原文链接:http://www.cnblogs.com/yefengmeander/p/3497854.html Introduction FlexPaper is an open source light weight document viewer component designed to work together with libraries such as PDF2SWF, making it possible to display PDF fi

  • DAY 5 Practice2019-07-24 21:02:23

    Practice1 构造水仙花数 """构造水仙花数version 0.1author 罗绪成"""for x in range (100,1000): a=int(x/100) b=int(x%100/10) c=int(x%10) if pow(a,3)+pow(b,3)+pow(c,3)==x: print(x) Practice 1* """构造自幂数version

  • 读书笔记>>Daniel H. Pink - The Adventures of Johnny Bunko_ The Last Career Guide You'll Ever2019-07-19 17:08:56

    It's nice to believe that you can map out every step ahead of time and end up where you want. But that's a fantasy. The world changes. Ten years from now, your job might be in India, your industry might not even exist.   The people who achieve t

  • practice in Shell programming generally2019-07-17 18:55:12

    This assignment aims to give youpractice in Shell programming generallyintroduce you to git & give you a clear concrete understanding of its basic semanticsNote: the material in the lecture notes will not be sufficient by itself to allow you to comple

  • Struct_graph&practice_1907052019-07-05 22:01:40

    Example of graph skill: figure min value:tag设为无穷,小则不断更新 figure max value:tag设极小值,大则不断更新 how to judge if there are a negative value circle analysis 对给定网图,floyd求任意两点间shortest path array max_row中取min值 邻接矩阵表示图–floy

  • PAT (Basic Level) Practice (中文) 1021 个位数统计 (15 分)2019-07-04 22:04:54

    PAT (Basic Level) Practice (中文) 公告 原PAT网站用户可在 https://patest.cn/bind_old_pat_user 页面绑定至拼题A账号。绑定后,原PAT网站的提交将被合并至拼题A网站用户的对应题目集中。 返回 1021 个位数统计 (15 分) 给定一个 k 位整数 N=d​k−1​​10​k−1​​+⋯

  • python_Daily practice (每日一练) 572019-07-04 18:41:05

    从键盘获取5个学生的名字,然后随机抽出一名学生去打扫卫生 参考代码 # coding=utf-8 import random # 定义返回生成后的学生列表 def make_stu_list(num): i = 1 # 存放学生的列表 student_list = [] # 依次添加5名学生 while i<=5: student =

  • *Practice*MS Money2019-06-29 17:28:17

    check out demo below from this site. recently, I was interested in MS Money and lucky to find this demo.it is so great for me to learn design and dev of a financing management software, so, sharing it here for further learning with you. Quote of the Day:

  • PAT (Basic Level) Practice 1012 数字分类2019-05-19 14:51:06

    给定一系列正整数,请按要求对数字进行分类,并输出以下 5 个数字: A​1​​ = 能被 5 整除的数字中所有偶数的和; A​2​​ = 将被 5 除后余 1 的数字按给出顺序进行交错求和,即计算 n​1​​−n​2​​+n​3​​−n​4​​⋯; A​3​​ = 被 5 除后余 2 的数字的个数; A​4​​ =

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有