結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
funakoshi
|
| 提出日時 | 2019-08-19 16:42:37 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 868 bytes |
| コンパイル時間 | 505 ms |
| コンパイル使用メモリ | 27,520 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-04 14:22:36 |
| 合計ジャッジ時間 | 752 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
int main(void)
{
int jibun,aite;
scanf("%d %d",&jibun,&aite);
if(jibun==aite)
{
printf("Drew");
}
else
{
if(jibun==1)
{
if(aite==2)
{
printf("Won");
}
else
{
printf("Lost");
}
}
else if(jibun==2)
{
if(aite==0)
{
printf("Won");
}
else
{
printf("Lost");
}
}
else
{
if(aite==1)
{
printf("Won");
}
else
{
printf("Lost");
}
}
}
}
funakoshi