結果
問題 |
No.780 オフ会
|
ユーザー |
|
提出日時 | 2019-03-05 23:35:23 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 455 bytes |
コンパイル時間 | 11,008 ms |
コンパイル使用メモリ | 225,396 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-23 14:25:47 |
合計ジャッジ時間 | 11,769 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 11 |
ソースコード
package main import( "bufio" "fmt" "os" "strings" "strconv" ) func main(){ scanner := bufio.NewScanner(os.Stdin) scanner.Scan() number := strings.Split(scanner.Text()," ") A,_ := strconv.Atoi(number[0]) A = A + 1 B,_ := strconv.Atoi(number[1]) if A == B{ fmt.Println("YES") fmt.Println(A-B) }else if A > B{ fmt.Println("NO") fmt.Println(A-B) }else if B > A{ fmt.Println("NO") fmt.Println(B-A) } }