結果
問題 | No.264 じゃんけん |
ユーザー | yycoder |
提出日時 | 2019-12-06 00:16:19 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 449 bytes |
コンパイル時間 | 1,238 ms |
コンパイル使用メモリ | 26,388 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-08-24 19:29:22 |
合計ジャッジ時間 | 1,924 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,384 KB |
testcase_01 | AC | 1 ms
4,384 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 0 ms
4,384 KB |
testcase_05 | AC | 0 ms
4,380 KB |
testcase_06 | AC | 1 ms
4,380 KB |
testcase_07 | WA | - |
testcase_08 | AC | 0 ms
4,380 KB |
ソースコード
#include <stdio.h> int main(void) { int me; int you; scanf("%d", &me); scanf("%d", &you); if (me == you) { printf("Drew\n"); } else { switch (me) { case 0: if (you == 2) printf("Lose\n"); if (you == 1) printf("Won\n"); break; case 1: if (you == 0) printf("Lose\n"); if (you == 2) printf("Won\n"); break; case 2: if (you == 1) printf("Lose\n"); if (you == 0) printf("Won\n"); break; } } return 0; }