結果
問題 | No.83 最大マッチング |
ユーザー | hokto |
提出日時 | 2019-01-06 08:28:44 |
言語 | Ruby (3.2.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 184 bytes |
コンパイル時間 | 376 ms |
コンパイル使用メモリ | 11,548 KB |
実行使用メモリ | 68,472 KB |
最終ジャッジ日時 | 2023-08-15 16:00:00 |
合計ジャッジ時間 | 12,435 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 79 ms
15,124 KB |
testcase_01 | AC | 78 ms
15,080 KB |
testcase_02 | AC | 78 ms
15,304 KB |
testcase_03 | WA | - |
testcase_04 | AC | 80 ms
15,224 KB |
testcase_05 | WA | - |
testcase_06 | AC | 79 ms
15,148 KB |
testcase_07 | WA | - |
testcase_08 | AC | 80 ms
15,100 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | TLE | - |
testcase_12 | -- | - |
コンパイルメッセージ
Syntax OK
ソースコード
number=gets.to_i def create_number(_counter) sum=0.to_i _counter.times do|i| sum+=10**i end return sum end puts (number%2==1)? create_number(number/2)+6 : create_number(number/2)