結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2016-05-02 14:59:07 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 102 ms / 5,000 ms |
コード長 | 138 bytes |
コンパイル時間 | 40 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-10-05 02:15:36 |
合計ジャッジ時間 | 2,054 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
Main.rb:4: warning: assigned but unused variable - i Syntax OK
ソースコード
num = gets.to_iif num >= 2print (1 * (7 ** (num % 2)))for i in 0..((num / 2) - 2)print 1endelseputs "eroor"endputs ""