結果
問題 | No.8041 なんとかのはなうらない |
ユーザー |
![]() |
提出日時 | 2025-02-24 03:17:59 |
言語 | Go (1.23.4) |
結果 |
TLE
|
実行時間 | - |
コード長 | 284 bytes |
コンパイル時間 | 11,977 ms |
コンパイル使用メモリ | 254,476 KB |
実行使用メモリ | 13,640 KB |
最終ジャッジ日時 | 2025-02-24 03:18:15 |
合計ジャッジ時間 | 15,292 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 TLE * 1 |
other | -- * 13 |
ソースコード
package main import . "fmt" func main() { var n int Scan(&n) if duel(n,0) { Println("Yes") } else { Println("No") } } func duel(n, i int) bool { if i >= n { return n % 2 == 0 } won := 0 for x := 1; x <= 3; x++ { if !duel(n, i+x) { won++ } } return won > 0 }