結果

問題 No.300 平方数
ユーザー gu_21816943gu_21816943
提出日時 2017-06-27 01:26:00
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 490 bytes
コンパイル時間 2,111 ms
コンパイル使用メモリ 74,684 KB
実行使用メモリ 53,608 KB
最終ジャッジ日時 2024-04-15 02:02:49
合計ジャッジ時間 8,177 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
50,580 KB
testcase_01 AC 53 ms
50,524 KB
testcase_02 AC 78 ms
51,296 KB
testcase_03 AC 53 ms
50,172 KB
testcase_04 AC 52 ms
50,288 KB
testcase_05 AC 52 ms
50,684 KB
testcase_06 AC 53 ms
50,568 KB
testcase_07 AC 52 ms
50,564 KB
testcase_08 AC 52 ms
50,712 KB
testcase_09 AC 53 ms
50,636 KB
testcase_10 AC 54 ms
50,624 KB
testcase_11 AC 53 ms
50,700 KB
testcase_12 AC 53 ms
50,532 KB
testcase_13 WA -
testcase_14 AC 53 ms
50,196 KB
testcase_15 AC 52 ms
50,676 KB
testcase_16 WA -
testcase_17 AC 52 ms
50,608 KB
testcase_18 AC 52 ms
50,536 KB
testcase_19 AC 54 ms
50,524 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		double num=Double.parseDouble(br.readLine());
		br.close();

		int count=1;
		double tmp;

		while(true){
			tmp=Math.sqrt(count*num);
			if(tmp-Math.floor(tmp)>0){
				count++;
				continue;
			}
			break;
		}
		System.out.println(count);
	}
}
0