結果
問題 | No.1057 素敵な日 |
ユーザー |
![]() |
提出日時 | 2021-05-01 20:50:41 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 162 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 04:04:19 |
合計ジャッジ時間 | 639 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 WA * 3 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d%d", &a, &b); | ^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { int a, b; scanf("%d%d", &a, &b); if(a >= b){ printf("%d\n", b * 2); } else{ printf("%d\n", a * 2); } return 0; }