結果

問題 No.83 最大マッチング
ユーザー sugim48sugim48
提出日時 2014-11-28 04:06:20
言語 Ruby
(3.3.0)
結果
AC  
実行時間 103 ms / 5,000 ms
コード長 95 bytes
コンパイル時間 479 ms
コンパイル使用メモリ 11,492 KB
実行使用メモリ 15,380 KB
最終ジャッジ日時 2023-09-01 22:38:24
合計ジャッジ時間 2,320 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,236 KB
testcase_01 AC 82 ms
15,284 KB
testcase_02 AC 81 ms
15,188 KB
testcase_03 AC 81 ms
15,292 KB
testcase_04 AC 81 ms
15,080 KB
testcase_05 AC 81 ms
15,304 KB
testcase_06 AC 80 ms
15,132 KB
testcase_07 AC 80 ms
15,084 KB
testcase_08 AC 81 ms
15,296 KB
testcase_09 AC 84 ms
15,264 KB
testcase_10 AC 96 ms
15,168 KB
testcase_11 AC 102 ms
15,380 KB
testcase_12 AC 103 ms
15,196 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
if n % 2 == 1
	n -= 3
	print 7
end
while n > 0
	n -= 2
	print 1
end
puts
0