結果
| 問題 |
No.112 ややこしい鶴亀算
|
| コンテスト | |
| ユーザー |
mmmppp
|
| 提出日時 | 2017-02-27 17:47:33 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 187 bytes |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-06-11 19:40:37 |
| 合計ジャッジ時間 | 3,468 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 1 |
| other | AC * 9 RE * 14 |
コンパイルメッセージ
Main.rb:11: warning: assigned but unused variable - x Main.rb:11: warning: assigned but unused variable - y Syntax OK
ソースコード
n=gets.to_i
a=gets.split.map &:to_i
if a.uniq.size==1
m=a[0]/(n-1)/4
if m==0
print n,' ',0
else
print 0,' ',n
end
else
x,y=a.minmax
print a.count(a),' ',a.count(b)
end
mmmppp