結果

問題 No.83 最大マッチング
ユーザー cielciel
提出日時 2014-12-02 23:23:25
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 97 bytes
コンパイル時間 473 ms
コンパイル使用メモリ 11,344 KB
実行使用メモリ 15,356 KB
最終ジャッジ日時 2023-09-02 01:01:55
合計ジャッジ時間 2,808 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
15,140 KB
testcase_01 AC 77 ms
15,036 KB
testcase_02 AC 75 ms
15,140 KB
testcase_03 WA -
testcase_04 AC 76 ms
15,248 KB
testcase_05 WA -
testcase_06 AC 75 ms
15,356 KB
testcase_07 WA -
testcase_08 AC 76 ms
15,140 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 74 ms
15,304 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
/usr/bin/ruby: warning: shebang line ending with \r may cause problems
Syntax OK

ソースコード

diff #

#!/usr/bin/ruby
n=gets.to_i
r='1'
if n%2==0
	n-=2
else
	r='7'
	n-=3
end
puts '1'*(n/2)+r
0