結果

問題 No.264 じゃんけん
ユーザー mosmos_21mosmos_21
提出日時 2016-10-19 23:47:52
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 195 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 20,352 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-02 14:54:55
合計ジャッジ時間 603 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 0 ms
5,376 KB
testcase_05 AC 0 ms
5,376 KB
testcase_06 AC 0 ms
5,376 KB
testcase_07 WA -
testcase_08 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |   scanf("%d%d",&n,&k);
      |   ^~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(){
  int n, k;
  char a[3][5] = {"Won", "Lose", "Drew"};
  int b[3][3] = {{2,0,1},{1,2,0},{0,1,2}};
  scanf("%d%d",&n,&k);
  printf("%s\n",a[b[n][k]]);
  return 0;
}
0