結果

問題 No.232 めぐるはめぐる (2)
ユーザー Kmcode1
提出日時 2015-06-27 00:14:15
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 650 bytes
コンパイル時間 1,027 ms
コンパイル使用メモリ 93,032 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-07 19:31:20
合計ジャッジ時間 4,127 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 4 WA * 18
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:32:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   32 |         scanf("%d%d%d", &t, &a, &b);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<cctype>
#include<cstdlib>
#include<algorithm>
#include<bitset>
#include<vector>
#include<list>
#include<deque>
#include<queue>
#include<map>
#include<set>
#include<stack>
#include<cmath>
#include<sstream>
#include<fstream>
#include<iomanip>
#include<ctime>
#include<complex>
#include<functional>
#include<climits>
#include<cassert>
#include<iterator>
#include<unordered_map>
using namespace std;
int t;
int a;
int b;
int main(){
	scanf("%d%d%d", &t, &a, &b);
	int k = min(a, b) + max(a, b) - min(a, b);
	if (k > t){
		puts("NO");
		return 0;
	}
	puts("NO");
	return 0;
}
0