結果
問題 |
No.1512 作文
|
ユーザー |
|
提出日時 | 2021-12-31 18:39:39 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 258 bytes |
コンパイル時間 | 389 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 25,488 KB |
最終ジャッジ日時 | 2024-10-08 19:41:07 |
合計ジャッジ時間 | 8,190 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 27 WA * 11 |
ソースコード
N = int(input()) l = [] for _ in range(N): S = input() T = list(S) if sorted(T) == T: l.append((T[-1],T[0],len(T))) now = 'a' ans = 0 l.sort() for e,s,length in l: if now <= s: ans += length now = e print(ans)