結果

問題 No.2595 Parsing Challenge
コンテスト
ユーザー ei1333333
提出日時 2023-12-23 00:44:14
言語 Go
(1.26.1)
コンパイル:
env GOCACHE=/tmp go build _filename_
実行:
./Main
結果
WA  
実行時間 -
コード長 262 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 16,173 ms
コンパイル使用メモリ 279,536 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-14 07:24:11
合計ジャッジ時間 18,240 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4 WA * 1
other AC * 4 WA * 51
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

package main

import (
	"bufio"
	"fmt"
	"go/token"
	"go/types"
	"os"
)

func main() {
	stdin := bufio.NewScanner(os.Stdin)
	stdin.Scan()
	stdin.Scan()
	exp := stdin.Text()
	res, _ := types.Eval(token.NewFileSet(), nil, token.NoPos, exp)
	fmt.Println(res.Value)
}
0