在form和panel上可以绘制图形,线段,圆,文字,图形等等. 绘制代码必须放在OnPaint()函数里面,因为窗体刷新的时候,都会调用该函数,重新刷新所绘的图. 示例代码在Panel上绘制图形来简单的描述下绘线和绘图原理. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq;…
Building Fence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 171 Accepted Submission(s): 25Special Judge Problem Description Long long ago, there is a famous farmer named John. He owns a bi…
Harry Potter and J.K.Rowling http://acm.hdu.edu.cn/showproblem.php?pid=3982 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1094 Accepted Submission(s): 357 Problem Description In July 31st,…
Maple trees Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1847 Accepted Submission(s): 574 Problem Description There are a lot of trees in HDU. Kiki want to surround all the trees with the…
//package IfAndSwitchs;import java.util.Scanner; public class Mianji { public static void main(String[] args){ //(1)这句话表达创建一个输入的对象 Scanner s =new Scanner(System.in); System.out.print("请选择图形 1.长方形 2.圆 3.三角形"); //(2)获取到用户控制台输入的数据,存放在choose里面 int c…
比赛链接: http://vjudge.net/contest/view.action?cid=47642#overview 题目来源: 2012 ACM/ICPC Asia Regional Jinhua Online ID Origin Title 18 / 70 Problem A HDU 4400 Mines (搜索, ★★★☆☆) 1 / 1 Problem B HDU 4401 Battery (数学, ★★☆☆☆ ) 2 / 2 Problem C HDU…