結果

問題 No.99 ジャンピング駒
ユーザー mafuyu-akimafuyu-aki
提出日時 2017-06-02 22:53:34
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 353 ms
コンパイル使用メモリ 30,240 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-21 22:20:11
合計ジャッジ時間 1,504 ms
ジャッジサーバーID
(参考情報)
judge10 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
4,348 KB
testcase_01 AC 14 ms
4,348 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main(int, char**)’:
main.cpp:16:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   16 |         scanf("%d", &N);
      |         ~~~~~^~~~~~~~~~
main.cpp:21:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   21 |                 scanf("%d", &X);
      |                 ~~~~~^~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define READ_BUFSIZE ( 1024 )
#define READ_DELIMITER ( " " )



int main(int argc, char *argv[]) 
{

	int N = 0;  

	scanf("%d", &N);

	int X = 0;
	for (int i = 0; i < N; i++)
	{
		scanf("%d", &X);
	}


	printf("%d\n", N%2);

	return 0;

}

0