結果

問題 No.975 ミスターマックスバリュ
ユーザー bal4ubal4u
提出日時 2020-02-01 07:11:01
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 518 bytes
コンパイル時間 578 ms
コンパイル使用メモリ 29,436 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-18 23:44:36
合計ジャッジ時間 1,239 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 1 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 1 ms
4,348 KB
testcase_08 AC 2 ms
4,348 KB
testcase_09 AC 1 ms
4,348 KB
testcase_10 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// yuki 975 ミスターマックスバリュ
// 2020.2.1 bal4u

#include <stdio.h>

int getchar_unlocked(void);
#define gc() getchar_unlocked()
//#define gc() getchar()

int in() {  // 整数の入力
	int n = 0; int c = gc();
	do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
	return n;
}

char f[100005];

int main()
{
	int X, N, M;
	static char *s[] = { "-1", "MrMax", "MaxValu", "MrMaxValu" };
	
	X = in(), N = in(), M = in();
	while (N--) f[in()] = 1;
	while (M--) f[in()] |= 2;
	puts(s[f[X]]);
	return 0;
}
0