hdu 2058 The sum problem
来源:互联网 发布:java汽车租赁费用 编辑:程序博客网 时间:2024/05/17 03:43
http://acm.hdu.edu.cn/showproblem.php?pid=2058
/*2011-9-19author:BearFly1990*/package acm.hdu.tests;import java.io.BufferedInputStream;import java.util.Scanner;public class HDU_2058 { public static void main(String[] args) { Scanner in = new Scanner(new BufferedInputStream(System.in)); while(in.hasNext()){ int n = in.nextInt(); int m = in.nextInt(); int len = (int) Math.sqrt(2.0*m); for(int i=len; i>=1; --i) { int temp = m-(i*i+i)/2; if(temp%i == 0) System.out.printf("[%d,%d]\r\n", temp/i+1, temp/i+i); } System.out.printf("\r\n"); } }}
- hdu 2058 The sum problem
- hdu 2058 The sum problem
- HDU 2058 The sum problem
- HDU 2058 The sum problem
- HDU 2058 The sum problem
- HDU 2058 The sum problem
- HDU 2058 The sum problem
- HDU 2058 The sum problem
- HDU 2058 The sum problem
- hdu---2058The sum problem
- The sum problem hdu 2058
- hdu 2058 The sum problem
- HDU 2058 The Sum Problem
- HDU-2058 The sum problem
- hdu 2058 The sum problem
- HDU 2058 The sum problem
- hdu 2058 The sum problem
- The sum problem hdu 2058
- Eclipse中设置代理
- gstreamer中playbin的播放原理
- ADF中的 'pessimistic 锁' 和 'optimistic 锁'
- Linux进程间通信的方法
- mysql 查询慢分析
- hdu 2058 The sum problem
- 【sql server 2005】因使用关键字做为表名引起的Hibernate报错
- Android 从服务器下载文件
- oracle获取本周、本月、本季度、本年度的第一天和最后一天
- 车厢调度算法
- PSIA与ONVIF:如何评估两种视频监控标准
- RichFaces 简介
- C#入门概念--解决方案、项目、程序集、命名空间
- 盗梦空间各种YY