sum=1/(1*1)
herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (Atom)
熱門文章
-
教育部為提昇全民資安素養與電腦防護能力,本部於101年9月5日至11月5日舉辦「全民資安素養自我評量」活動,請在活動期間內踴躍上網檢測資訊安全素養認知程度,並有機會參與抽獎,詳情請參閱活動網站(網址: https://isafe.moe.edu.tw/event
-
先說明一下這是後知後覺的解答,所謂後知就是股票價格已知存在陣列(清單),當然就要用迴圈練習,雙迴圈暴力解需時O(n**2),當然不用,採python單一迴圈解答「最佳股票的買賣時機#LeetCode 121 Best Time to Buy and Sell Stock」,解...
-
url="https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=20220330&stockNo=2330"
-
你會用C的算子sizeof?
-
Python CPP heap priority queue速解L eetcode 2530. Maximal Score After Applying K Operations heap/priority queue是重要的資料結構,無論是C++的std::priority_q...
-
C++ DP動態規劃解Leetcode 937 Maximum Number of Points with Cost 有些標示medium要比標示hard的問題還要難,Leetcode 1937. Maximum Number of Points with Cost,DP動態規...
69 則留言:
public class Test_01 {
public static void main(String[] args) {
float sun = 0, i = 1, n = 10000;
for (; i <= n; i++) {
sun = sun + 1 / (i * i);
}
System.out.println(sun);
System.out.print(Math.PI * Math.PI / 6);
}
}
public class test {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int i ;
int n = 10000 ;
double sum = 0 ;
for (i=1; i<= n; i++)
{
sum= (sum + 1/(double)(i*i)) ;
}
System.out.println(sum);
System.out.println(Math.PI*Math.PI/6);
}
}
public class ex02 {
public static void main(String[] args) {
double sun=0,i=1,n=10000;
for(;i<=n;i++){
sun=sun+1/(i*i);
}
System.out.println(sun);
System.out.print(Math.PI*Math.PI/6);
}
}
public class Test_01 {
public static void main(String[] args) {
double sun = 0, i = 1, n = 10000;
for (; i <= n; i++) {
sun = sun + 1 / (i * i);
}
System.out.println(sun);
System.out.print(Math.PI * Math.PI / 6);
}
}
public class test1 {
public static void main(String[] args)
{
double x,sum=0;
for(int i=1;i<=10000;i++)
{
sum = sum + (double)1/(i*i);
}
System.out.print("sum="+sum);
}
}
public class aa {
public static void main(String[] args) {
System.out.println("Hello");
double sum=0;
for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
public class aa {
public static void main(String[] args){
System.out.println("Hello");
double sum=0;
for (int j=1;j<=10000;j++){
sum=sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
public class aaaa {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
double sum=0;
int n=10000;
for(int i=1;i<=n;i++){
sum = sum + 1/(double)(i*i);
}
System.out.println(sum);
}
}
public class PSO2
{
public static void main(String[] args)
{
double sum = 0;
for (int i = 1; i <10000; i++)
{
sum = sum + (double)1 /(i*i);
}
System.out.println("sum"+sum);
}
}
public class PSO2
{
public static void main(String[] args)
{
double sum = 0;
for (int i = 1; i <10000; i++)
{
sum = sum + (double)1 /(i*i);
}
System.out.println("sum"+sum);
}
}
public class hello {
public static void main(String[] args)
{
double x,sum=0;
for(int i=1;i<=10000;i++)
{
sum = sum + (double)1/(i*i);
}
System.out.print("sum="+sum);
}
}
public class 123 {
public static void main(String[] args) {
System.out.println("Hello");
double sum=0;
⋯⋯ for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
double result = 0;
for (double index = 1; index <= 10000; index += 1) {
result = 1 / (index * index) + result;
}
System.out.println(result);
public class REX {
public static void main(String[] args) {
System.out.println("Hello");
double sum=0;
⋯⋯ for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
public class hello {
public static void main(String[] args) {
double sum=0;
for (int i=1;i<=10000;i++ ){
sum+=(double)1/(i*i) ;
}
System.out.println(sum);
}
}
public class hello123 {
public static void main(String[] args) {
double sum=0;
for(int i=1;i<=10000;i++){
sum+=(double)1/(i*i);
}
System.out.println(sum);
}
}
public class for2 {
static public void main(String[] args){
double sum=0;
for(int i=1;i<=10000;i++)
sum+=(double)1/i/i;
System.out.println(sum);
}
}
public class win {
public static void main(String[] args) {
System.out.println("Hello");
double sum=0;
⋯⋯ for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
public class hello {
public static void main(String[] args){
double x,sum=0;
for(int i=1;i<=10000;i++){
sum=sum+(double)1/(i*i);
}
System.out.print("sum="+sum);
}
}
public class hello {
public static void main(String[] args)
{
double x,sum=0;
for(int i=1;i<=10000;i++)
{
sum = sum + (double)1/(i*i);
}
System.out.print("sum="+sum);
}
}
public class hello {
public static void main(String[] args)
{
double sum = 0;
{
for (int i=1 ; i<=10000 ; i++)
{
sum = sum +(double) 1 / (i*i);
}
System.out.println("sum="+sum);
}
}
}
public class hello123 {
public static void main(String[] args)
{
double sum=0;
for(int i=1; i<=10000; i++)
{
sum=sum+1./i/i;
}
System.out.println(sum);
}
}
public class ya {
public static void main(String[] args) {
System.out.println("Hello");
double sum=0;
for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
public class hello {
public static void main(String[] args)
{
double x,sum=0;
for(int i=1;i<=10000;i++)
{
sum = sum + (double)1/(i*i);
}
System.out.print("sum="+sum);
}
}
public class karama {
public static void main(String[] args){
double sum=0;
for(int i=1 ; i<=10000; i++)
{
sum=sum+1./i/i;
}
System.out.print(sum);
}
}
public class aaa {
public static void main(String[] args) {
double s=0;
for (int i =1; i< 10000; i++) {
s +=(double) 1.0/i/i;
}
System.out.println(s);
}
}
public class aaaaaaaaa{
public static void main(String[] args) {
System.out.println("Hello");
double sum=0;
for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
public class aa
{
public static void main(String[] args)
{
double x,sum=0;
for(int i=1;i<=10000;i++)
{
sum = sum + (double)1/(i*i);
}
System.out.print("sum="+sum);
}
public class java {
public static void main(String[] args) {
double sum=0;
for(double a=1 ; a<=10000 ; a++){
sum=sum+1 /a/a;
}
System.out.println(sum);
}
}
public class hello {
public static void main(String[] args)
{
double sum = 0;
{
for (int i=1 ; i<=10000 ; i++)
{
sum = sum +(double) 1 / (i*i);
}
System.out.println("sum="+sum);
}
}
}
public class hellow {
public static void main(String[] args) {
System.out.println("Hello");
double sum=0;
⋯⋯ for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
public class sam
{
public static void main(String[] args{
double sum=0;
for(int i=1 ; i<=10000; i++)
{
sum=sum+1./i/i;
}
System.out.print(sum);
}
}
class fir{
public static void main(String[] args){
double sum=0;
for(double i=1;i<=10000;i++){
sum+=1/(i*i);
}
System.out.print(sum);
}
}
public class FK {
public static void main(String[] args) {
System.out.println("Hello");
double sum=0;
⋯⋯ for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
public class qqq{
public static void main(String[] args) {
System.out.println("Hello");
double sum=0;
for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
public class cc{
public static void main(String[] args) {
System.out.println("Hello");
double sum=0;
for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
class apple{
public static void main(String[] args){
double sum=0;
for(double a=1;a<=10000;a++){
sum+=1/(a*a);
}
System.out.println(sum);
}
}
class sor{
public static void main(String[] args){
double sum=0;
for(double i=1;i<=10000;i++){
sum+=1/(i*i);
}
System.out.print(sum);
}
}
public class cc{
public static void main(String[] args) {
System.out.println("Hello");
double sum=0;
for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
public class cc{
public static void main(String[] args) {
double sum=0;
for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
public class hello {
public static void main(String[] args) {
double x,sum=0;
for(int i=1;i<=1000;i++)
{
sum =sum +(double)1/(i*i);
}
System.out.print("sum="+sum);
}
}
public class apple {
public static void main(String[]args) {
double b=0;
for(double a= 1 ; a <= 10000; a++){
b+=1/(a*a);
}
System.out.println(b);
}
}
public class hello12345 {
public static void main(String[] args)
{
double x,sum = 0;
for (int i = 1; i<=10000; i++ )
{
sum = sum + (double)1/(i*i);
}
System.out.println("sum"+sum);
}
}
public class aa
{
public static void main(String[] args)
{
double x,sum=0;
for(int i=1;i<=10000;i++)
{
sum = sum + (double)1/(i*i);
}
System.out.print("sum="+sum);
}
public class hello
{ public static void main(String[] args) {
double x,sum = 0;
for (int i = 1; i<=10000; i++ ) {
sum = sum + (double)1/(i*i); } System.out.println("sum"+sum); } }
public class form111 {
static public void main (String[] args) {
double sum = 0 ;
for(int i=1; i<= 10000;i++) {
sum += (double) 1 /i /i ;
}
System.out.print(sum);
}
}
public class apppp {
public static void main(String[] args) {
double sum=0;
for(int a=1 ; a<=10000; a++){
sum=sum+(double)1/(a*a);
}
System.out.println(sum);
}
}
public class hello {
public static void main(String[] args)
{
double x,sum = 0;
for (int i = 1; i<=10000; i++ )
{
sum = sum + (double)1/(i*i);
}
System.out.println("sum"+sum);
}
}
public class test1 {
public static void main(String [] args)
{
int n=10000;
double sum =0;
int i=1;
while(i<=n)
{
sum += (double)1/i/i;
i++;
}
System.out.print("sum="+sum);
}
}
public class while1 {
static public void main(String[] args){
double sum=0;
int i=1,n=10000;
while(i<=n){
sum+=(double)1/i/i;
i++;
}
System.out.println(sum);
System.out.println(Math.PI*Math.PI/6);
}
}
public class hello {
public static void main(String[] args) {
{
double sum = 0;
int n=10000;
int i=1;
while (i<=n)
{
sum+=(double)1/(i*i);
i++;
}
System.out.println("sum="+sum);
}
}
}
public class pso2 {
public static void main(String[] args)
{
int n=10000;
double sum =0;
int i=1;
while(i<=n)
{
sum += (double)1/i/i;
i++;
}
System.out.print("sum"+sum);
}
}
public class hello123 {
public static void main(String[] args) {
double sum=0;
double n=10000;
double i=1;
while(i<=n){
sum+=1./i/i;
i++;
}
System.out.println(sum);
}
}
public class LinDa
{
public static void main(String[] args)
{
double sum = 0;
double n = 10000;
double i = 1;
while(i <= n)
{
sum+=1./i/i;
i++;
}
System.out.print(sum);
}
}
public class sam
{
public static void main(String[] args)
{
double sum = 0;
double n = 10000;
double i = 1;
while(i <= n)
{
sum+=1./i/i;
i++;
}
System.out.print(sum);
}
}
public class apple {
public static void main(String[]args) {
double b = 0;
double a = 1;
while (a < 10000){
b += 1/(a*a);
a++;
}
}
}
public class apple {
public static void main(String[] args){
double sum=0;
double n=10000;
double i=1;
while(i<=n){
sum+=1/(i*i);
i++;
}
System.out.println(sum);
}
}
public class while1 {
public static void main(String[] args) {
double sum=0;
int i=1,n=10000;
while(i<=n){
sum+=(double)1/i/i;
i++;
}
sum+=(double)1/i/i;
System.out.println(sum);
System.out.println(Math.PI*Math.PI/6);
}
}
public class while1 {
public static void main(String[] args) {
double sum=0;
int i=1,n=10000;
while(i<=n){
sum+=(double)1/i/i;
i++;
}
sum+=(double)1/i/i;
System.out.println(sum);
System.out.println(Math.PI*Math.PI/6);
}
}
public class while1 {
public static void main(String[] args) {
double sum=0;
int i=1,n=10000;
while(i<=n){
sum+=(double)1/i/i;
i++;
}
sum+=(double)1/i/i;
System.out.println(sum);
System.out.println(Math.PI*Math.PI/6);
}
}
public class NYPD {
public static void main(String[] args) {
double sum=0;
for(int i=1;i<=10000;i++){
sum+=(double)1/(i*i);
}
System.out.println(sum);
}
}
public class test1 {
public static void main(String[] args)
{
double x,sum=0;
for(int i=1;i<=10000;i++)
{
sum = sum + (double)1/(i*i);
}
System.out.print("sum="+sum);
}
}
public class test2 {
public static void main(String[] args)
{
double x,sum=0;
for(int i=1;i<=10000;i++)
{
sum = sum + (double)1/(i*i);
}
System.out.print("sum="+sum);
}
}
public class ex02 {
public static void main(String[] args) {
double sun=0,i=1,n=10000;
for(;i<=n;i++){
sun=sun+1/(i*i);
}
System.out.println(sun);
System.out.print(Math.PI*Math.PI/6);
}
}
public class aa {
public static void main(String[] args) {
System.out.println("Hello");
double sum=0;
for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
public class sss {
public static void main(String[] args) {
double sun=0,i=1,n=10000;
for(;i<=n;i++){
sun=sun+1/(i*i);
}
System.out.println(sun);
System.out.print(Math.PI*Math.PI/6);
}
}
public class hello {
public static void main(String[] args) {
System.out.println("Hello");
double sum=0;
⋯⋯ for (int j = 1; j < 10001; j++) {
sum =sum+(double) 1/(j*j);
}
System.out.println(sum);
}
}
public class Test_01 {
public static void main(String[] args) {
float sun = 0, i = 1, n = 10000;
for (; i <= n; i++) {
sun = sun + 1 / (i * i);
}
System.out.println(sun);
System.out.print(Math.PI * Math.PI / 6);
}
}
public class Test_01 {
public static void main(String[] args) {
float sun = 0, i = 1, n = 10000;
for (; i <= n; i++) {
sun = sun + 1 / (i * i);
}
System.out.println(sun);
System.out.print(Math.PI * Math.PI / 6);
}
}
張貼留言