結果

問題 No.1223 I hate Golf
ユーザー トミー
提出日時 2024-11-25 01:24:58
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 281 bytes
コンパイル時間 1,850 ms
コンパイル使用メモリ 192,524 KB
最終ジャッジ日時 2025-02-25 06:11:07
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 5 WA * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:18:28: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   18 | int main() { solve();system("pause"); }
      |                      ~~~~~~^~~~~~~~~

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef int64_t ll;


void solve() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  ll n,k,t;
  cin>>n>>k>>t;
  if(abs(t-k)<n){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
} 

int main() { solve();system("pause"); }
0