結果
問題 |
No.1957 Xor Min
|
ユーザー |
![]() |
提出日時 | 2022-06-16 17:10:56 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 11,305 ms |
コンパイル使用メモリ | 223,304 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-06 18:19:32 |
合計ジャッジ時間 | 11,410 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 WA * 13 |
ソースコード
package main import "fmt" func min(x, y int64) int64 { if x < y { return x } return y } func main() { var A, B int64 fmt.Scan(&A, &B) ans := int64(1) for { t := (ans << 1) + 1 if t > A || t > B { break } ans = t } if A== B { ans-- } fmt.Println(ans) }