結果

問題 No.969 じゃんけん
ユーザー bal4ubal4u
提出日時 2020-01-19 16:46:51
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 1,420 ms
コンパイル使用メモリ 27,920 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-15 20:12:01
合計ジャッジ時間 2,070 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

// yuki 969 じゃんけん
// 2019.1.19 bal4u

#include <stdio.h>

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

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

int main()
{
	int X;
	
	X = in();
	puts((X == 0 || X == 4 || X == 10)? "Yes": "No");
	return 0;
}
0