結果

問題 No.264 じゃんけん
ユーザー ns6251
提出日時 2020-02-25 05:34:23
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 278 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 28,032 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-13 06:21:39
合計ジャッジ時間 620 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(){
    int n,k;
    scanf("%d %d", &n, &k);
    int res = n - k;
    if(res) {
        if (res == -1 || res == 2) {
            printf("Won");
        }
        else {
            printf("Lost");
        }
    } else {
        printf("Drew");
    }
}
0