結果
問題 | No.2736 About half |
ユーザー |
![]() |
提出日時 | 2024-04-30 18:43:37 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 395 ms |
コンパイル使用メモリ | 39,680 KB |
最終ジャッジ日時 | 2025-02-21 09:54:45 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:15:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%d%d", &a, &b); | ~~~~~^~~~~~~~~~~~~~~~
ソースコード
/* -*- coding: utf-8 -*- * * 2736.cc: No.2736 About half - yukicoder */ #include<cstdio> #include<algorithm> using namespace std; /* main */ int main() { int a, b; scanf("%d%d", &a, &b); if (a * 2 >= b && b * 2 >= a) puts("Yes"); else puts("No"); return 0; }