結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2022-06-26 22:08:32 |
| 言語 | Go (1.26.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 330 bytes |
| 記録 | |
| コンパイル時間 | 10,560 ms |
| コンパイル使用メモリ | 290,640 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-12 09:23:56 |
| 合計ジャッジ時間 | 11,682 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / tmp-judge_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 14 |
ソースコード
package main
import (
"fmt"
"strconv"
"strings"
)
func main() {
var s, t string
fmt.Scan(&s, &t)
std := strings.Split(s, ".")
tgt := strings.Split(t, ".")
ans := "YES"
for i := 0; i < 3; i++ {
S, _ := strconv.Atoi(std[i])
T, _ := strconv.Atoi(tgt[i])
if T > S {
ans = "NO"
break
}
}
fmt.Println(ans)
}
toshiro_yanagi