結果
| 問題 |
No.648 お や す み
|
| コンテスト | |
| ユーザー |
tamari_2525
|
| 提出日時 | 2018-02-27 17:00:56 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 321 bytes |
| コンパイル時間 | 405 ms |
| コンパイル使用メモリ | 53,784 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-29 02:27:22 |
| 合計ジャッジ時間 | 31,638 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 84 |
ソースコード
#include<iostream>
#define ll long long
using namespace std;
void judge(ll n){
unsigned long int s;
ll i=0;
if(n<1 && n>10000000000000){
cout<<"NO\n";
}else{
for(s=0;n>i;s++){
i=s+i;
}
cout<<"Yes\n"<<s-1<<"\n";
}
}
int main(){
ll n;
cout<<"何匹?";
cin>>n;
judge(n);
}
tamari_2525