結果

問題 No.337 P versus NP
コンテスト
ユーザー 💕💖💞
提出日時 2016-09-10 15:41:12
言語 Go
(1.26.1)
コンパイル:
env GOCACHE=/tmp go build _filename_
実行:
./Main
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 442 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 16,038 ms
コンパイル使用メモリ 277,484 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-05-12 01:36:36
合計ジャッジ時間 12,144 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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