結果
| 問題 |
No.1850 Rewrite Product
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-25 21:27:14 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 2,000 ms |
| コード長 | 237 bytes |
| コンパイル時間 | 225 ms |
| コンパイル使用メモリ | 27,008 KB |
| 最終ジャッジ日時 | 2025-01-28 01:52:32 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d", &testcase_i);
| ~~~~~^~~~~~~~~~~~~~~~~~~
main.cpp:8:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%d %d", &X, &Y);
| ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include<cstdio>
int main(){
int testcase_i;
scanf("%d", &testcase_i);
for (int ___ = 0; ___ < testcase_i; ___++){
int X, Y;
scanf("%d %d", &X, &Y);
printf(Y > X && X <= 4 ? "No\n" : "Yes\n");
}
}