結果
問題 | No.2595 Parsing Challenge |
ユーザー |
![]() |
提出日時 | 2023-12-23 00:49:12 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 17,155 ms |
コンパイル使用メモリ | 225,804 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-27 11:46:38 |
合計ジャッジ時間 | 18,709 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 5 WA * 50 |
ソースコード
package mainimport ("bufio""fmt""go/token""go/types""os""strings")func main() {stdin := bufio.NewScanner(os.Stdin)stdin.Scan()stdin.Scan()exp := strings.ReplaceAll(stdin.Text(), "--", "")res, _ := types.Eval(token.NewFileSet(), nil, token.NoPos, exp)fmt.Println(res.Value)}