結果

問題 No.570 3人兄弟(その1)
ユーザー ゆうPゆうP
提出日時 2024-04-07 01:12:32
言語 Go
(1.22.1)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 316 bytes
コンパイル時間 11,356 ms
コンパイル使用メモリ 229,288 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-04-07 01:12:46
合計ジャッジ時間 12,050 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,676 KB
testcase_01 AC 1 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 1 ms
6,676 KB
testcase_04 AC 2 ms
6,676 KB
testcase_05 AC 2 ms
6,676 KB
testcase_06 AC 2 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// No.570 3人兄弟(その1)
package main

import (
	"fmt"
	"sort"
)

func main() {
	var a, b, c int
	fmt.Scan(&a, &b, &c)
	list := []int{a, b, c}
	sort.Ints(list)
	for i := 2; i >= 0; i-- {
		switch list[i] {
		case a:
			fmt.Println("A")
		case b:
			fmt.Println("B")
		case c:
			fmt.Println("C")
		}
	}
}
0