結果

問題 No.2185 平方数の下6桁
ユーザー daiota
提出日時 2023-01-14 10:36:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 404 bytes
コンパイル時間 3,246 ms
コンパイル使用メモリ 166,036 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-25 16:22:07
合計ジャッジ時間 3,297 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 35 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef pair<int,int> P;
#define REP(i,n) for(int i=0;i<int(n);i++)


int main(void){
	cin.tie(nullptr);  ios_base::sync_with_stdio(false);
	ll i,j,k;

	string s;
	cin >> s;

	ll m=stoll(s);
	for(i=0;i<1000000;i++){
		ll x=i*i;
		if(x%10000000==m){
			cout << "YES" << endl;
			return 0;
		}

	}

	cout << "NO" << endl;

	return 0;
}
0