結果

問題 No.1700 floor X
ユーザー #leucobird
提出日時 2021-11-27 17:48:13
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 360 bytes
コンパイル時間 751 ms
コンパイル使用メモリ 78,224 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 08:38:11
合計ジャッジ時間 4,104 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 41 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;

const int INF = 2147483647;

int main(void){
  int t;
  cin >> t;
  vector<int> vec(t);
  for (int i = 0; i < t; i++) {
    long long n;
    cin >> n;
    vec[i] = floor(sqrt(n));
  }

  for (int i = 0; i < t; i++) {
    cout << vec[i] << endl;
  }
  return 0;
}
0