結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
kachipan
|
| 提出日時 | 2023-06-23 15:22:06 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 599 bytes |
| 記録 | |
| コンパイル時間 | 301 ms |
| コンパイル使用メモリ | 28,416 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-30 19:58:44 |
| 合計ジャッジ時間 | 707 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 10 |
ソースコード
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
int main()
{
enum SUCCESS
{
NONE,
YES,
NO,
};
int turn = 0;
int nums[10] = { 0 };
for (int i = 0;i < turn;i++)
{
char str[10] = "";
int num[4] = {0};
for (int j = 0;j < 4;j++)
{
scanf("%d", &num[i]);
}
scanf("%s", str);
if (str == "YES")
{
for (int j = 0;j < 4;j++)
{
if (nums[num[j]] < YES)
{
nums[num[j]] = YES;
}
}
}
else
{
for (int j = 0;j < 4;j++)
{
if (nums[num[j]] < NO)
{
nums[num[j]] = NO;
}
}
}
}
return 0;
}
kachipan