結果
| 問題 |
No.671 1000000007
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-08-29 10:36:41 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 284 bytes |
| コンパイル時間 | 15,925 ms |
| コンパイル使用メモリ | 227,120 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-22 07:57:45 |
| 合計ジャッジ時間 | 14,010 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
ソースコード
package main
import (
"fmt"
"regexp"
"math"
)
func main() {
r := regexp.MustCompile(`(0)`)
var N string
fmt.Scan(&N)
input := r.FindAllString(N, -1)
ideal := r.FindAllString("1000000007", -1)
diff := float64(len(ideal) - len(input))
fmt.Println(math.Abs(diff))
}