People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6 digit number, wher ...
分类:
其他好文 时间:
2018-01-15 18:51:07
阅读次数:
122
1. %s s = string 字符串 2. %d d = digit 整数 3. %f f = float 浮点数 ...
分类:
其他好文 时间:
2018-01-13 20:40:02
阅读次数:
228
A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 1 == 0, 128 ...
分类:
其他好文 时间:
2018-01-10 21:41:12
阅读次数:
159
JZOJ 1981. 【2011集训队出题】Digit Time Limits: 1000 ms Memory Limits: 128000 KB Description 在数学课上,小T又被老师发现上课睡觉了。为了向全班同学证明小T刚才没有好好听课,数学老师决定出一道题目刁难一下小T,如果小T答不 ...
分类:
其他好文 时间:
2018-01-05 22:34:01
阅读次数:
269
PAT 1005. Spell It Right (20) Given a non negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the su ...
分类:
其他好文 时间:
2018-01-04 00:25:00
阅读次数:
156
一、PTA实验作业(循环) 题目一: 1.本题PTA提交列表 2.设计思路(包括流程图),主要描述题目算法 1. 定义字符数组en[10],数组的长度为10;定义整型变量i,letter=digit=other=0; 2. 用for循环和getchar()输入10个字符:for(i=0;i<10;i ...
分类:
其他好文 时间:
2017-12-29 22:35:00
阅读次数:
249
1.题目: 2.PTA提交列表(要提交列表,不是结果) <!--[endif]--> 3.设计思路(包括流程图),主要描述题目算法 //设计思路,由题目可知 1.定义字符数组,数组的长度为10;定义整型变量i,letter=digit=other=0; 2.用for循环和getchar()输入10个 ...
分类:
其他好文 时间:
2017-12-26 23:11:45
阅读次数:
172
1、判断用户输入的数字是否为正整数。#!/bin/bash#判断用户输入的参数是否为正整数read -p "Please input a digit:" intif [[ "$int" =~ (^[0-9]*[1-9][0-9]*$) ]];then echo "this digit is po
分类:
系统相关 时间:
2017-12-24 21:28:52
阅读次数:
219
经常遇到要对某些数据进行补位的情况,有些是数据格式问题,有些是设计的问题,就抽空写了个拙劣的补位函数, package TestPac; public class DoCover { /*******参数 bit 表示固定位数 *******参数 digit 要补位的数字 ******参数TOF 表 ...
分类:
其他好文 时间:
2017-12-23 17:10:48
阅读次数:
87
题目: A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 1 == 0, ...
分类:
编程语言 时间:
2017-12-17 16:59:29
阅读次数:
170