結果
問題 |
No.648 お や す み
|
ユーザー |
![]() |
提出日時 | 2018-03-10 01:23:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 1,481 ms |
コンパイル使用メモリ | 166,040 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-11 01:04:22 |
合計ジャッジ時間 | 4,074 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 39 WA * 45 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; #define rep(i,a) for(int i=0;i<(a);i++) #define MOD 1000000007 int main(){ ll n; cin>>n; rep(i,24*60*60){ ll num=i*(i+1)/2; if(num>=n){ cout<<"YES"<<endl; cout<<i<<endl; return 0; } } cout<<"NO"<<endl; return 0; }