結果

問題 No.83 最大マッチング
ユーザー いともたやすく行われるえげつない行為
提出日時 2017-02-23 12:24:31
言語 Go
(1.23.4)
結果
AC  
実行時間 66 ms / 5,000 ms
コード長 401 bytes
コンパイル時間 14,640 ms
コンパイル使用メモリ 240,392 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-01-02 18:21:40
合計ジャッジ時間 15,485 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
	"bufio"
	"fmt"
	"io"
	"os"
)

func solve(in io.Reader, out, err io.Writer) {
	num := 0
	fmt.Fscan(in, &num)
	temp := num / 2

	if temp*2 == num {
		fmt.Fprint(out, 1)
	} else {
		fmt.Fprint(out, 7)
	}
	for i := 1; i < temp; i++ {
		fmt.Fprint(out, 1)
	}
	fmt.Fprintln(out, "")

}

func main() {
	br := bufio.NewReaderSize(os.Stdin, int(1e6))
	solve(br, os.Stdout, os.Stderr)
}
0