結果
問題 |
No.706 多眼生物の調査
|
ユーザー |
![]() |
提出日時 | 2022-03-07 20:27:09 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 2,019 ms |
コンパイル使用メモリ | 220,424 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 14:33:07 |
合計ジャッジ時間 | 2,633 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
import std; void main() { int N; readf("%d\n", N); int L = 1001; auto cnts = new int[](L); foreach (_; 0 .. N) { auto S = readln.chomp; ++cnts[S.length-2]; } auto nums = L.iota.array; zip(cnts, nums).sort!"a[0] == b[0] ? a[1] > b[1] : a[0] > b[0]"; nums[0].writeln; }