![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构&算法
bilv1112
这个作者很懒,什么都没留下…
展开
-
hdu2030汉字统计 java
Problem Description 统计给定文本文件中汉字的个数。Input 输入文件首先包含一个整数n,表示测试实例的个数,然后是n段文本。Output 对于每一段文本,输出其中的汉字的个数,每个测试实例的输出占一行。[Hint:]从汉字机内码的特点考虑~Sample Input 2 WaHaHa! WaHaHa! 今年过节不说话要说只说普通话WaHaHa! WaHaHa! 马上就原创 2016-10-11 23:42:15 · 197 阅读 · 0 评论 -
十进制转化成十六进制(数据结构java作业)
在ShiYan6.java的main方法中添加相应的代码,实现十进制数向十六进制数的转换public class ShiYan6 { public static void main(String args[ ]) { LinkedStack<Integer> stack = new LinkedStack<Integer>(); int N=235;原创 2016-10-12 23:45:22 · 1646 阅读 · 0 评论 -
hdu2016数据的交换输出 java
hdu2016数据的交换输出 java原创 2016-10-12 23:51:56 · 285 阅读 · 0 评论 -
hdu2051 Bitset (十进制转化为二进制) java
Problem Description Give you a number on base ten,you should output it on base two.(0 < n < 1000)Input For each case there is a postive number n on base ten, end of file.Output For each case output原创 2016-10-14 00:37:22 · 230 阅读 · 0 评论 -
java 二进制转十进制
import java.util.Scanner;public class Main{ static Scanner sc=new Scanner(System.in); public static void main(String args[]){ String str; while(sc.hasNext()){ str=sc原创 2016-10-19 20:56:40 · 667 阅读 · 0 评论