結果
問題 |
No.648 お や す み
|
ユーザー |
![]() |
提出日時 | 2018-02-13 20:39:27 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 520 ms |
コンパイル使用メモリ | 58,104 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 11:51:23 |
合計ジャッジ時間 | 22,626 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 84 |
ソースコード
#include<iostream> #include<algorithm> #include<vector> #include<cstdio> using namespace std; int main(){ unsigned long long N; cin >> N; for(long long i=0;;i++){ if(N*2<=(i*(i+1))){ cout << i; return 0; } } return 0; }