結果

問題 No.337 P versus NP
ユーザー 💕💖💞
提出日時 2016-09-10 15:41:12
言語 Go
(1.23.4)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 442 bytes
コンパイル時間 11,590 ms
コンパイル使用メモリ 221,976 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-16 19:58:47
合計ジャッジ時間 12,497 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
	_ "math"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	holder := []int{}
	th := 0
	for scanner.Scan() {
	  th += 1
		for _, t := range strings.Split(scanner.Text(), " ") { 
			x3, _ := strconv.Atoi(t) 
			holder = append(holder, x3)
		}
		if th == 1 { break }
	}
	N, P := holder[0], holder[1]
	if P == P*N {	
	  fmt.Println("=")
  }else{
	  fmt.Println("!=")
	}
}
0