結果

問題 No.83 最大マッチング
ユーザー ichiruisyu
提出日時 2016-06-27 09:49:27
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 229 bytes
コンパイル時間 509 ms
コンパイル使用メモリ 20,352 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-11 22:21:50
合計ジャッジ時間 929 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |         scanf("%d", &N);
      |         ^~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>


int main(void)
{
	int N,i;

	scanf("%d", &N);

	if(N % 2 == 0){
		for(i=0; i<N/2; i++){
			printf("1");
		}
	}else{
		printf("7");
		for(i=0; i<N/2-1; i++){
			printf("1");
		}
	}
	printf("\n");

	return 0;
}
0