結果

問題 No.83 最大マッチング
ユーザー zazaboonzazaboon
提出日時 2016-05-02 14:59:07
言語 Ruby
(3.3.0)
結果
AC  
実行時間 140 ms / 5,000 ms
コード長 138 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-04-15 09:16:27
合計ジャッジ時間 2,443 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
12,288 KB
testcase_01 AC 110 ms
12,160 KB
testcase_02 AC 101 ms
12,160 KB
testcase_03 AC 110 ms
12,160 KB
testcase_04 AC 113 ms
12,288 KB
testcase_05 AC 101 ms
12,160 KB
testcase_06 AC 122 ms
12,160 KB
testcase_07 AC 111 ms
12,160 KB
testcase_08 AC 112 ms
12,032 KB
testcase_09 AC 115 ms
12,288 KB
testcase_10 AC 134 ms
12,416 KB
testcase_11 AC 140 ms
12,416 KB
testcase_12 AC 140 ms
12,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:4: warning: assigned but unused variable - i
Syntax OK

ソースコード

diff #

num = gets.to_i
if num >= 2
  print (1 * (7 ** (num % 2)))
  for i in 0..((num / 2) - 2)
    print 1
  end
else
  puts "eroor"
end
puts ""
0