結果
| 問題 |
No.79 過小評価ダメ・ゼッタイ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-25 00:13:54 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 14 ms / 5,000 ms |
| コード長 | 289 bytes |
| コンパイル時間 | 3,472 ms |
| コンパイル使用メモリ | 65,604 KB |
| 実行使用メモリ | 8,704 KB |
| 最終ジャッジ日時 | 2024-06-30 05:36:06 |
| 合計ジャッジ時間 | 3,991 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
import sequtils, strutils
var
n = readLine(stdin).parseInt
l = readLine(stdin).split.map(parseInt)
ans:seq[int] = @[]
for i in 1..6:
ans.add(count(l, i))
proc main():int =
for j in countdown(5,0):
if ans[j] == max(ans):
return j + 1
echo main()