結果
| 問題 |
No.1700 floor X
|
| コンテスト | |
| ユーザー |
karaage
|
| 提出日時 | 2021-10-08 22:05:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,133 bytes |
| コンパイル時間 | 1,566 ms |
| コンパイル使用メモリ | 169,984 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-23 04:22:56 |
| 合計ジャッジ時間 | 2,967 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 20 WA * 24 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using ull=unsigned long long;
const ll MOD=1000000000+7;
#define rep(I,N) for(int I=0;I<N;I++)
#define ALL(x) x.begin(),x.end()
#define PRINTV(x) for(auto i:x){for(auto j:i){printf("%d\t",j);}printf("\n");}
using vec = vector<int>;
using vvec = vector<vector<int>>;
const int INF = ~(1 << 31);
ll lcm(ll,ll);
template<class T>
void HorRot(vector<vector<T>>& v){
for(int i=0;i<v.size()/2;i++){
v[i].swap(v[v.size()-i-1]);
}
}
template<class T>
void DiaRot(vector<vector<T>>& v){
for(int i=0;i<v.size()-1;i++){
for(int j=i+1;j<v.size();j++){
swap(v[i][j],v[j][i]);
}
}
}
template<class T>
void Rot90(vector<vector<T>>& v){
HorRot(v);
DiaRot(v);
}
bool chmin(int &a,int b){
if(a>b){
a=b;
return true;
}
return false;
}
int main(){
ll n;
cin >> n;
vector<ll> ans;
rep(i,n){
int a;
cin >> a;
ans.push_back(sqrt(a));
}
for(auto i:ans){
printf("%lld\n",i);
}
return 0;
}
ll lcm(ll a,ll b){
return a/__gcd(a,b)*b;
}
karaage