177 - Square

1 view
Skip to first unread message

Fatemeh Azadi

unread,
Dec 18, 2009, 6:11:54 AM12/18/09
to aut-a...@googlegroups.com
salam

baraye soale 177 e sgu behtarin rahi ke be zehnam resid (ke fekr mikonam O(n*(n + m)) bashe) ba VC++ time limit mishe!, mikhastam bebinam aya rahe behtary vojood dare?


pishapish mamnoon




177.cpp

Pooya Zafar

unread,
Dec 18, 2009, 11:10:37 AM12/18/09
to aut-a...@googlegroups.com
Salam

man codetun ro khundam code AC gerefteye khodam ro ham khundam vali
algorithm kamelan yeki bud va man ham mesle shoma az Vector &
Priority_queue estefade kardam pas nemishe goft una baese TLE hastand,
albate vorudim ham mesle shomast vali behar hal 2 ta pishnahad daram
yeki inke ba G++ submit konid va yeki inke vorudi ro be in surat be
khunid:
scanf("%d%d%d%d%s", &x1, &y1, &x2, &y2[i], ch);
yani bejaye %c az %s estefade konid va bareye inkar bayad yek char*
behest bedid, masalan ch ro ta'arif konid "char ch[10]" va ba'ad khode
ch ro behest pas konid mesle bala (nabayad az '&' estefade konid)

movaffagh bashid
pooya

> --
>
> You received this message because you are subscribed to the Google Groups
> "AUT-ACMICPC" group.
> To post to this group, send email to aut-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> aut-acmicpc...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/aut-acmicpc?hl=en.
>
>
>

Reply all
Reply to author
Forward
0 new messages