結果
| 問題 | No.3487 Restricted Shiritori |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-01 21:22:43 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 2,000 ms |
| コード長 | 115 bytes |
| 記録 | |
| コンパイル時間 | 387 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 29,568 KB |
| 最終ジャッジ日時 | 2026-04-01 21:23:35 |
| 合計ジャッジ時間 | 3,287 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
コンパイルメッセージ
Main.rb:7: warning: ambiguous first argument; put parentheses or a space even after `-` operator Syntax OK
ソースコード
s,e,n=gets.split
n=n.to_i
if n==1 then
if s==e then
puts s
else
puts -1
end
else
puts s*(n-1)+e
end