結果
問題 | No.501 穴と文字列 |
ユーザー |
![]() |
提出日時 | 2019-08-18 13:21:42 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 85 ms / 2,000 ms |
コード長 | 105 bytes |
コンパイル時間 | 347 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-01 13:56:43 |
合計ジャッジ時間 | 2,980 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
コンパイルメッセージ
Main.rb:2: warning: assigned but unused variable - cntA Syntax OK
ソースコード
n,d=gets.split.map &:to_icntA=0if n>=dputs "A"*d+"C"*(n-d)elseputs "A"*(n*2-d)+"B"*(d-n)end