結果

問題 No.83 最大マッチング
ユーザー Maeda
提出日時 2025-03-07 14:22:40
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 264 bytes
コンパイル時間 621 ms
コンパイル使用メモリ 24,960 KB
実行使用メモリ 8,608 KB
最終ジャッジ日時 2025-03-07 14:22:42
合計ジャッジ時間 1,346 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

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