結果

問題 No.264 じゃんけん
ユーザー つなぎつなぎ
提出日時 2016-03-30 13:46:50
言語 C90
(gcc 11.4.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 186 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 20,608 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-10 06:29:03
合計ジャッジ時間 1,585 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘short int *’ [-Wformat=]
    5 | scanf("%d %d",&aa,&ab);
      |        ~^     ~~~
      |         |     |
      |         int * short int *
      |        %hd
main.c:5:12: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘short int *’ [-Wformat=]
    5 | scanf("%d %d",&aa,&ab);
      |           ~^      ~~~
      |            |      |
      |            int *  short int *
      |           %hd
main.c:5:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 | scanf("%d %d",&aa,&ab);
      | ^~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main(void) {
short aa=0;
short ab=0;
scanf("%d %d",&aa,&ab);
if(aa==ab)printf("Drew");
if((aa+1)%3==ab)printf("Won");
if((ab+1)%3==aa) printf("Lost");
	return 0;
}
0