結果

問題 No.83 最大マッチング
ユーザー rainy
提出日時 2021-07-26 15:13:26
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 1,544 ms
コンパイル使用メモリ 29,184 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-22 05:45:49
合計ジャッジ時間 792 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(void) {
	long int one = 1;
	long int num = 0;
	int N;
	scanf("%d", &N);
	while (N > 3) {
		num += one;
		one *= 10;
		N -= 2;
	}
	if (N == 2) {
		num += one;
	}else {
		num += (one * 7);
	}
	printf("%ld", num);
}
0