結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
![]() |
提出日時 | 2019-08-13 13:52:19 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 295 bytes |
コンパイル時間 | 1,184 ms |
コンパイル使用メモリ | 157,532 KB |
実行使用メモリ | 8,448 KB |
最終ジャッジ日時 | 2024-09-19 13:25:18 |
合計ジャッジ時間 | 7,544 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 TLE * 1 |
other | WA * 1 -- * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int n; int ans =0; cin >>n; if(n%2 ==1){ cout << n-1 << endl; } else{ int i=1; while(true){ if(i*i ==n){ cout << i << endl; break; } i++; } } }