結果
| 問題 | No.706 多眼生物の調査 | 
| コンテスト | |
| ユーザー |  6soukiti29 | 
| 提出日時 | 2018-06-29 23:17:00 | 
| 言語 | Nim (2.2.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 4 ms / 2,000 ms | 
| コード長 | 259 bytes | 
| コンパイル時間 | 3,794 ms | 
| コンパイル使用メモリ | 66,028 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-01 00:14:27 | 
| 合計ジャッジ時間 | 3,590 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 | 
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import sequtils,strutils
var
    N = stdin.readline.parseInt
    A : array[1001,int]
    a : int
    ans,p : int
    
for n in 1..N:
    a = stdin.readline.count('^')
    A[a] += 1
for i in 0..1000:
    if p <= A[i]:
        p = A[i]
        ans = i
echo ans
            
            
            
        