自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 POJ3299Humidex(JAVA

Description Adapted from Wikipedia, the free encyclopedia The humidex is a measurement used by Canadian meteorologists to reflect the combined effect of heat and humidity. It differs from the heat index used in the United States in using dew point rather

2021-12-25 13:33:03 296

原创 杭电oj2123(JAVA

Problem Description In this problem you need to make a multiply table of N * N ,just like the sample out. The element in the ithrow and jthcolumn should be the product(乘积) of i and j. Input The first line of input is an integer C which indicate th..

2021-11-26 11:53:17 289

原创 杭电oj1013(JAVA

Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are s.

2021-11-20 16:43:34 384

原创 杭电oj2502(JAVA

Problem Description 当寒月还在读大一的时候,他在一本武林秘籍中(据后来考证,估计是计算机基础,狂汗-ing),发现了神奇的二进制数。 如果一个正整数m表示成二进制,它的位数为n(不包含前导0),寒月称它为一个n二进制数。所有的n二进制数中,1的总个数被称为n对应的月之数。 例如,3二进制数总共有4个,分别是4(100)、5(101)、6(110)、7(111),他们中1的个数一共是1+2+2+3=8,所以3对应的月之数就是8。 Input 给你一个整数T,表示输入数据...

2021-11-18 19:12:00 84

原创 杭电oj2053(JAVA

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()) { int n=sc.nextInt();//第几个灯 int e=0;//记录灯的状态 for (int i = 1; i <= n; i++) { if (n%i==0) .

2021-11-16 15:02:52 546

原创 杭电oj2088(JAVA

Problem Description Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. “Look, I've built a wall!”, he tells his older sister Alice. “Nah, you should make all stacks the same height..

2021-11-15 19:34:51 344

原创 杭电oj2076(JAVA

Problem Description 时间过的好快,一个学期就这么的过去了,xhd在傻傻的看着表,出于对数据的渴望,突然他想知道这个表的时针和分针的夹角是多少。现在xhd知道的只有时间,请你帮他算出这个夹角。 注:夹角的范围[0,180],时针和分针的转动是连续而不是离散的。 Input 输入数据的第一行是一个数据T,表示有T组数据。 每组数据有三个整数h(0 <= h < 24),m(0 <= m < 60),s(0 <= s < 60)分别表示时、分、秒.

2021-11-15 17:29:33 90

原创 杭电oj2111(JAVA

话说上回讲到海东集团面临内外交困,公司的元老也只剩下XHD夫妇二人了。显然,作为多年拼搏的商人,XHD不会坐以待毙的。 一天,当他正在苦思冥想解困良策的时候,突然想到了自己的传家宝,那是公司成立的时候,父亲作为贺礼送来的一个锦囊,徐父当时交代,不到万不得已的时候,不要打开它。“现在不正是最需要的时候吗?”,一边想,XHD一边找到了这个精心保管的锦囊,打开一看,里面只有一句话“杭城北麓千人洞有宝”。 二话不说,XHD拿起一个大口袋就出发了,这个千人洞他是知道的,小的时候,爸爸曾经带他来过这个隐蔽的路口...

2021-11-12 16:37:29 64

原创 杭电oj1009(JAVA

FatMouse' Trade Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 33703 Accepted Submission(s): 10981 Problem Description FatMouse prepared M p...

2021-11-09 21:31:23 94

原创 HUD2060(JAVA

求出最大得分可能的思路, 1.当Ball_Left<=6时,必剩下颜色球,由高分球黑球开始累加得到最大分数 2.当Ball_Left>6时,必存在6个颜色球,接着我们可知道(Ball_Left - 6)为所剩的红球数目,随后击中黑球得分最高 import java.util.Scanner; public class Main2060 { public static void main(String[] args) { Scanner sc = new Scanner(System

2021-11-06 21:48:35 91

原创 HUD2022(JAVA

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while (sc.hasNext()) { int n=sc.nextInt(); int m=sc.nextInt(); int a=0,b=0; .

2021-10-28 12:45:45 149

原创 杭电oj2032(JAVA

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int n=sc.nextInt(); int arr[][]=new int[n].

2021-10-28 12:44:08 119

原创 杭电oj2035(JAVA

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); while (scanner.hasNext()){ int a=scanner.nextInt()%1000;//直接取后三位,方便后续高效运算 int b=scanner.nextInt(); if (a==0&&b==.

2021-10-27 16:59:19 162

原创 杭电oj2020(JAVA

import java.util.Scanner; public class Main2020 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int n=sc.nextInt(); int arr[]=new int[n]; if(n==0){break;} for (int i = 0; i < arr.len.

2021-10-27 14:33:30 123

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除