結果
| 問題 |
No.2843 Birthday Present Struggle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-23 21:29:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 384 bytes |
| コンパイル時間 | 642 ms |
| コンパイル使用メモリ | 82,708 KB |
| 実行使用メモリ | 64,916 KB |
| 最終ジャッジ日時 | 2024-08-23 21:29:08 |
| 合計ジャッジ時間 | 7,061 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 3 WA * 31 |
ソースコード
n=int(input())
ax,ay=map(int,input().split())
bx,by=map(int,input().split())
cx,cy=map(int,input().split())
dx,dy=-1,-1
for i in range(1,n+1):
if (ax<i and bx<i<cx)or(cx<i<ax and i<bx):
dx=i
break
if (ay<i and by<i<cy)or(cy<i<ay and i<by):
dy=i
break
print(n)
if dx>-1:
print(n)
for i in range(n):
print(dx,i+1)
else:
for i in range(n):
print(i+1,dy)