結果

問題 No.264 じゃんけん
コンテスト
ユーザー k
提出日時 2017-03-16 02:28:39
言語 C90
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 283 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 161 ms
コンパイル使用メモリ 37,072 KB
最終ジャッジ日時 2026-02-24 00:31:47
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int L,N;
int main(void){
  int a,b,c;
  scanf("%d %d",&a,&b);
  c = a-b;
  if(c==0)
    printf("Drew\n");
  else if(c==-1 || c==2)
    printf("Won\n");
  else if(c==1 || c==-2)
    printf("Lost\n");
return 0;
}
0