結果

問題 No.83 最大マッチング
コンテスト
ユーザー Maeda
提出日時 2025-03-07 14:24:24
言語 C
(gcc 15.2.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 302 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 948 ms
コンパイル使用メモリ 37,312 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-02-16 17:45:38
合計ジャッジ時間 1,128 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <stdio.h>

void main(void){
	int matchstick = 0;
	int input = scanf("%d\n",&matchstick);
	if(matchstick  == 3){
		printf("%d",7);
	}else{
		int numCount = matchstick/2;
		if(matchstick%2 != 0){
			printf("7");
			numCount--;
		}
		for(int i = 0;i < numCount ; i++){
			printf("%d",1);
		}
	}
}
0