結果

問題 No.863 計算量
ユーザー kat0rikkat0rik
提出日時 2019-08-16 21:35:26
言語 Go
(1.20.2)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 224 bytes
コンパイル時間 314 ms
実行使用メモリ 6,320 KB
最終ジャッジ日時 2023-03-31 09:45:01
合計ジャッジ時間 1,379 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,272 KB
testcase_01 AC 1 ms
6,204 KB
testcase_02 AC 1 ms
6,260 KB
testcase_03 AC 1 ms
6,260 KB
testcase_04 AC 1 ms
6,196 KB
testcase_05 AC 1 ms
6,212 KB
testcase_06 AC 1 ms
6,200 KB
testcase_07 AC 1 ms
6,192 KB
testcase_08 AC 1 ms
6,320 KB
testcase_09 AC 1 ms
6,176 KB
testcase_10 AC 2 ms
6,196 KB
testcase_11 AC 1 ms
6,268 KB
testcase_12 AC 1 ms
6,176 KB
testcase_13 AC 1 ms
6,208 KB
testcase_14 AC 1 ms
6,200 KB
testcase_15 AC 1 ms
6,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import "fmt"

func abs(a int) int {
	if a >= 0 {
		return a
	}
	return -a
}

func main() {
	var A, B int
	fmt.Scan(&A, &B)
	if abs(B-40*A) < abs(B-1600*A) {
		fmt.Println("1")
	} else {
		fmt.Println("2")
	}
}
0