結果
| 問題 |
No.2796 Small Matryoshka
|
| コンテスト | |
| ユーザー |
AwashAmityOak
|
| 提出日時 | 2024-06-28 21:58:44 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 238 bytes |
| コンパイル時間 | 174 ms |
| コンパイル使用メモリ | 82,388 KB |
| 実行使用メモリ | 89,416 KB |
| 最終ジャッジ日時 | 2024-06-28 21:58:52 |
| 合計ジャッジ時間 | 6,676 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 WA * 11 |
ソースコード
N = int(input()) dolls = [] for i in range(N): r, R = map(int, input().split()) dolls.append((r, R)) dolls.sort() ans = 0 last = dolls[0] for i in range(1, N): if last[1] > dolls[i][0]: ans += 1 else: last = dolls[i] print(ans)
AwashAmityOak