結果
| 問題 |
No.648 お や す み
|
| コンテスト | |
| ユーザー |
dustnn0
|
| 提出日時 | 2018-03-10 01:37:19 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 475 bytes |
| コンパイル時間 | 1,516 ms |
| コンパイル使用メモリ | 165,536 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-11 06:04:52 |
| 合計ジャッジ時間 | 4,478 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 26 WA * 58 |
ソースコード
#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;
ll num=0;
for(ll i=1;i<60*60*24*365;i++){
num+=i;
if(num==n){
cout<<"YES"<<endl;
cout<<i<<endl;
return 0;
}
if(num>n){
cout<<num<<endl;
cout<<"NO"<<endl;
return 0;
}
}
cout<<num<<endl;
cout<<"NO"<<endl;
return 0;
}
dustnn0