結果
問題 |
No.138 化石のバージョン
|
ユーザー |
![]() |
提出日時 | 2022-06-26 22:08:32 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 330 bytes |
コンパイル時間 | 14,563 ms |
コンパイル使用メモリ | 220,052 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 12:48:22 |
合計ジャッジ時間 | 15,718 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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) }