結果
| 問題 |
No.2063 ±2^k operations (easy)
|
| コンテスト | |
| ユーザー |
ID 21712
|
| 提出日時 | 2024-11-18 21:23:18 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 105 ms / 2,000 ms |
| コード長 | 275 bytes |
| コンパイル時間 | 10,812 ms |
| コンパイル使用メモリ | 237,876 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-18 21:23:35 |
| 合計ジャッジ時間 | 12,594 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
package main
import . "fmt"
import . "strings"
func main() {
var s string
Scan(&s)
switch Count(s,"1") {
case 2:
Println("Yes")
return
case 0,1:
Println("No")
return
}
s=TrimLeft(s,"1")
if Count(s,"1") ==0 {
Println("Yes")
} else {
Println("No")
}
}
ID 21712