結果

問題 No.2185 平方数の下6桁
ユーザー AsahiAsahi
提出日時 2023-01-13 21:41:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 822 ms / 2,000 ms
コード長 886 bytes
コンパイル時間 2,258 ms
コンパイル使用メモリ 72,444 KB
実行使用メモリ 59,784 KB
最終ジャッジ日時 2023-08-26 03:23:08
合計ジャッジ時間 33,155 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 775 ms
59,288 KB
testcase_01 AC 790 ms
59,712 KB
testcase_02 AC 771 ms
59,244 KB
testcase_03 AC 768 ms
59,312 KB
testcase_04 AC 770 ms
59,488 KB
testcase_05 AC 768 ms
59,180 KB
testcase_06 AC 766 ms
59,464 KB
testcase_07 AC 771 ms
59,148 KB
testcase_08 AC 769 ms
59,136 KB
testcase_09 AC 771 ms
58,808 KB
testcase_10 AC 769 ms
59,436 KB
testcase_11 AC 772 ms
58,940 KB
testcase_12 AC 769 ms
58,932 KB
testcase_13 AC 771 ms
59,784 KB
testcase_14 AC 772 ms
59,268 KB
testcase_15 AC 773 ms
58,900 KB
testcase_16 AC 764 ms
58,996 KB
testcase_17 AC 764 ms
59,188 KB
testcase_18 AC 770 ms
59,120 KB
testcase_19 AC 771 ms
59,168 KB
testcase_20 AC 772 ms
59,228 KB
testcase_21 AC 772 ms
58,992 KB
testcase_22 AC 782 ms
59,180 KB
testcase_23 AC 769 ms
58,972 KB
testcase_24 AC 767 ms
58,900 KB
testcase_25 AC 768 ms
58,956 KB
testcase_26 AC 771 ms
59,100 KB
testcase_27 AC 790 ms
59,208 KB
testcase_28 AC 764 ms
59,536 KB
testcase_29 AC 776 ms
59,300 KB
testcase_30 AC 770 ms
59,476 KB
testcase_31 AC 770 ms
59,136 KB
testcase_32 AC 771 ms
59,292 KB
testcase_33 AC 786 ms
59,104 KB
testcase_34 AC 822 ms
59,180 KB
testcase_35 AC 774 ms
59,364 KB
testcase_36 AC 772 ms
59,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;
 
public class Main{
    public static BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
    public static PrintWriter output = new PrintWriter(System.out);
    public static Scanner sc = new Scanner(System.in);
    public static final int INFI = Integer.MAX_VALUE;
    public static final long INFL = Long.MAX_VALUE;
    public static final int MOD = 1000000007;

    public static void main(String[] args) throws IOException{
        StringTokenizer st;
        //st = new StringTokenizer(buff.readLine());
        String S = sc.next();
        boolean ok = false;
        for(long i=(long)1e6;i<=(long)1e7;i++) {
            String s = Long.toString(i*i);
            if(s.substring(7,s.length()).equals(S)) ok = true;
        }
        output.println(ok?"YES":"NO");
        output.flush();
    }
}
0