結果
問題 | No.2736 About half |
ユーザー |
![]() |
提出日時 | 2024-04-24 21:07:13 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 551 ms |
コンパイル使用メモリ | 55,628 KB |
最終ジャッジ日時 | 2025-02-21 08:48:54 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:12:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%lld%lld",&a,&b); | ~~~~~^~~~~~~~~~~~~~~~~~
ソースコード
//// Created by HakuroKawashiro on 2024/4/24.//#include <cstring>#include <cstdio>#include <algorithm>#include <cmath>#define ll long longusing namespace std;int main() {ll a,b;scanf("%lld%lld",&a,&b);if (a * 2 < b || b * 2 < a) {printf("No");} else {printf("Yes");}return 0;}