結果
問題 | No.3037 トグルトグルトグル! |
ユーザー |
![]() |
提出日時 | 2025-02-28 21:46:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 557 bytes |
コンパイル時間 | 1,334 ms |
コンパイル使用メモリ | 159,880 KB |
実行使用メモリ | 9,892 KB |
最終ジャッジ日時 | 2025-02-28 21:47:00 |
合計ジャッジ時間 | 5,053 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 TLE * 1 -- * 7 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define rep(i, n) for(int i = 0; i< (int)(n); i++)using ll = long long;using ull = unsigned long long;using vi = vector<int>;ll INF = 2e18;#define Yes cout << "Yes" << endl#define No cout << "No" << endl#define YN {cout<<"Yes"<<endl;}else{cout<<"No"<<endl;} // true → Yes false → No// cout << fixed << setprecision(20);int main() {int N; cin>>N;int i = 1;while(true) {if(i*i >= N) {cout << i-1 << endl;return 0;}else i++;}}