結果

問題 No.2185 平方数の下6桁
ユーザー umezoumezo
提出日時 2023-01-13 23:03:24
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 153 ms / 2,000 ms
コード長 393 bytes
コンパイル時間 2,213 ms
コンパイル使用メモリ 204,280 KB
実行使用メモリ 7,268 KB
最終ジャッジ日時 2023-08-26 04:47:31
合計ジャッジ時間 8,740 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 145 ms
7,052 KB
testcase_01 AC 145 ms
7,000 KB
testcase_02 AC 144 ms
7,096 KB
testcase_03 AC 146 ms
6,996 KB
testcase_04 AC 141 ms
7,092 KB
testcase_05 AC 141 ms
7,092 KB
testcase_06 AC 143 ms
7,060 KB
testcase_07 AC 141 ms
7,044 KB
testcase_08 AC 143 ms
7,000 KB
testcase_09 AC 153 ms
7,128 KB
testcase_10 AC 142 ms
7,004 KB
testcase_11 AC 143 ms
7,084 KB
testcase_12 AC 144 ms
6,988 KB
testcase_13 AC 141 ms
7,008 KB
testcase_14 AC 143 ms
7,004 KB
testcase_15 AC 140 ms
7,096 KB
testcase_16 AC 144 ms
7,084 KB
testcase_17 AC 140 ms
7,108 KB
testcase_18 AC 145 ms
6,992 KB
testcase_19 AC 145 ms
7,048 KB
testcase_20 AC 145 ms
7,056 KB
testcase_21 AC 146 ms
6,996 KB
testcase_22 AC 141 ms
7,028 KB
testcase_23 AC 142 ms
7,160 KB
testcase_24 AC 142 ms
7,032 KB
testcase_25 AC 141 ms
7,024 KB
testcase_26 AC 142 ms
7,000 KB
testcase_27 AC 146 ms
6,988 KB
testcase_28 AC 144 ms
7,004 KB
testcase_29 AC 148 ms
7,268 KB
testcase_30 AC 147 ms
7,096 KB
testcase_31 AC 146 ms
6,996 KB
testcase_32 AC 147 ms
7,004 KB
testcase_33 AC 143 ms
7,056 KB
testcase_34 AC 145 ms
6,996 KB
testcase_35 AC 147 ms
7,084 KB
testcase_36 AC 144 ms
7,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(v) v.begin(),v.end()
typedef long long ll;
 
#include<bits/stdc++.h>
using namespace std;

int main(){
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
 
  set<ll> se;
  for(ll i=0;i<1000000;i++){
    se.insert(i*i%1000000);
  }
  
  int s;
  cin>>s;
  if(se.count(s)) cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
  
  return 0;
}
0