結果
問題 | No.638 Sum of "not power of 2" |
ユーザー | むらため |
提出日時 | 2019-01-18 04:06:52 |
言語 | Nim (2.0.2) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 2,487 ms |
コンパイル使用メモリ | 67,844 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-14 02:08:16 |
合計ジャッジ時間 | 3,596 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 1 ms
4,380 KB |
testcase_05 | WA | - |
testcase_06 | AC | 1 ms
4,376 KB |
testcase_07 | AC | 1 ms
4,376 KB |
testcase_08 | AC | 2 ms
4,376 KB |
testcase_09 | AC | 2 ms
4,376 KB |
testcase_10 | AC | 2 ms
4,376 KB |
testcase_11 | AC | 1 ms
4,380 KB |
testcase_12 | WA | - |
testcase_13 | AC | 2 ms
4,376 KB |
ソースコード
import strutils,bitops let n = stdin.readLine.parseInt() if n in [1,2,3,4,5,7]: quit "-1", 0 for x in 3..<n: if x.popcount() == 1 : continue let y = n - x if y.popcount() == 1 : continue echo x," ",y break