結果
問題 | No.780 オフ会 |
ユーザー |
|
提出日時 | 2019-01-27 15:28:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 159 bytes |
コンパイル時間 | 485 ms |
コンパイル使用メモリ | 64,584 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 17:41:05 |
合計ジャッジ時間 | 1,175 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 4 | main() | ^~~~
ソースコード
#include<iostream> using namespace std; int a,b; main() { cin>>a>>b; if(a+1<=b)cout<<"YES"<<endl; else cout<<"NO"<<endl; cout<<(a+1<b?b-a-1:a+1-b)<<endl; }