結果

問題 No.687 E869120 and Constructing Array 1
コンテスト
ユーザー ゆうP
提出日時 2024-04-07 13:56:22
言語 Go
(1.26.1)
コンパイル:
env GOCACHE=/tmp go build _filename_
実行:
./Main
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 267 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 10,518 ms
コンパイル使用メモリ 283,108 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-17 04:21:50
合計ジャッジ時間 11,365 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

// No.687 E869120 and Constructing Array 1
package main

import "fmt"

func main() {
	var n int
	fmt.Scan(&n)
	var a, b int
	for i := 1; i < 11; i++ {
		for j := 1; j < 11; j++ {
			if i+j == n {
				a = i
				b = j
				goto End
			}
		}
	}
End:
	fmt.Println(a, b)
}
0