Adonisty: 8:24am On Jun 14, 2024 |
turmacs:
For those that might be interested in how to think about the solution....
First of all you need to understand that this problem is not as mathematical as some might have thought, because I assumed that after reading the second paragraph some people who are not math inclined will lose hope, it's just pure implementation problem with very very little math, basically just addition and subtraction. I don't know what that MindHacker9009 guy is saying, university mathematics students Lolzz.. A child in jss1who knows how to code should be able to solve this with little effort.
You have to observe that the points that are part of the circle are always in a diamond shape and are symmetrical from the middle column.
All you have to do is to find the first appearance of '#' character because the first appearance will always be the on the same column as the center of the circle ( the row and column that it's found on) and to find the row that the center appears on, just count the number of '#' in the middle column, divide that count by 2 (to find the position of the middle) then add whatever you get to the row number that the first '#' was on.
Sorry if my explanation is hard to understand by here is my C++ solution to the problem, you can use chatgpt to convert to any language of your choice to understand it.
#include <vector> #include <iostream> using namespace std; void paveway(){ long long n , m; cin >> n >> m; long long ans = 0, cnt = 0;bool ant = false; vector<vector<char>> a(n , vector<char>(m));long long anc = 0; for(long long i = 0; i < n; i++){ for(long long j = 0; j < m; j++){ cin >> a[i][j]; if(a[i][j] == '#' && ant == false){ ans = j + 1 , anc = i + 1; ant = true; // This is where we find the row and column of the first ever '#' } if(a[i][j] == '#' && j == ans - 1) cnt += 1; // This keep's count of the number of '#' on the middle column } } cout << cnt/2 + anc << " " << ans << endl; } int main (){ ios::sync_with_stdio(false); cin.tie(nullptr); //long long t = 1; long long t; cin >> t; for( ;t--; ) paveway(); return 0; }
You don't assert what you know by making others feel stupid. I'm very sure there are tons of things they know that you don't know.
1 Like |
zexy2030(m): 8:26am On Jun 14, 2024 |
turmacs:
Lolzzz.. Except your "LLM" or "AI" is better than chatgpt, i don't think it can solve this one because chatgpt could not solve it. No be by cho , cho , cho, show workings Post the solution here let us see it.
|
MindHacker9009(m): 12:21pm On Jun 14, 2024 |
turmacs:
For those that might be interested in how to think about the solution....
First of all you need to understand that this problem is not as mathematical as some might have thought, because I assumed that after reading the second paragraph some people who are not math inclined will lose hope, it's just pure implementation problem with very very little math, basically just addition and subtraction. I don't know what that MindHacker9009 guy is saying, university mathematics students Lolzz.. A child in jss1who knows how to code should be able to solve this with little effort.
The specific task of finding a Manhattan circle and determining the center from grid data will be found in a university level programming class where mathematical concepts are applied to programming tasks. Even a CS grade with 1st class will need some time to understand the problem and some practice before they can solve Leetcode problems and it's not even worth wasting time on them as 99% of the problems on Leetcode are not relevant in real life projects, they seems more like problems you'd see in competitive programming.
If you know what programming is in the work place then you'll hide your face and stop posting these non useful tasks here. It's better you return the the 'Educational' section to continue asking for help with the simple maths you find hard to solve.
Here is an example again of what experienced programmers will spend their valuable time on so if you want to develop commercially variable software then these are the stuff you should be working on.
Implement a piece of online software suitable for use by a cinema. The system should be
capable of providing information about films currently showing, and of the availability
of seats in the cinema. The system should allow for seats to be booked either
individually or as a block. For example a block of 3 seats would require 3 adjacent
seats to be booked together.
turmacs:
Bro please keep quiet, you always talk reason like what i don't know. You could not solve it be say you could not solve it, this is a leetcode style problem so you're telling me it's university students that should be doing leetcode? Okay when you get to your next interview and they give you leetcode style problem, tell them that one. You will not waste time to solve a simple problem that would not take more than 15 LOC to solve, but you have time to type all this gibberish? Ohh please I've always known you to shy away from anything that has to do with any form of critical thinking so I'm not surprised here. The other day i posted a simple math problem, na still this you gibbering you use as excuse.
1 Like |
Shomek(m): 1:09pm On Jun 14, 2024 |
Hmm
|
Shomek(m): 1:14pm On Jun 14, 2024 |
Adonisty:
You don't assert what you know by making others feel stupid. I'm very sure there are tons of things they know that you don't know.
Don't mind her jare
She think she know everything
I too know too much
|
Emusan(m): 5:17pm On Jun 14, 2024 |
turmacs:
Wow this is actually correct and I am really surprised that it could solve it (although this a very easy problem). Chatgpt just solved nonsense. So no software engineer on NL could solve this till now? wonderfull.
If ChatGPT or any AI can write code, hope this won't be a problem for software engineers in the future?
|
Paystack(f): 6:48pm On Jun 14, 2024 |
turmacs:
For those that might be interested in how to think about the solution....
First of all you need to understand that this problem is not as mathematical as some might have thought, because I assumed that after reading the second paragraph some people who are not math inclined will lose hope, it's just pure implementation problem with very very little math, basically just addition and subtraction. I don't know what that MindHacker9009 guy is saying, university mathematics students Lolzz.. A child in jss1who knows how to code should be able to solve this with little effort.
You have to observe that the points that are part of the circle are always in a diamond shape and are symmetrical from the middle column.
All you have to do is to find the first appearance of '#' character because the first appearance will always be the on the same column as the center of the circle ( the row and column that it's found on) and to find the row that the center appears on, just count the number of '#' in the middle column, divide that count by 2 (to find the position of the middle) then add whatever you get to the row number that the first '#' was on.
Sorry if my explanation is hard to understand by here is my C++ solution to the problem, you can use chatgpt to convert to any language of your choice to understand it.
#include <vector> #include <iostream> using namespace std; void paveway(){ long long n , m; cin >> n >> m; long long ans = 0, cnt = 0;bool ant = false; vector<vector<char>> a(n , vector<char>(m));long long anc = 0; for(long long i = 0; i < n; i++){ for(long long j = 0; j < m; j++){ cin >> a[i][j]; if(a[i][j] == '#' && ant == false){ ans = j + 1 , anc = i + 1; ant = true; // This is where we find the row and column of the first ever '#' } if(a[i][j] == '#' && j == ans - 1) cnt += 1; // This keep's count of the number of '#' on the middle column } } cout << cnt/2 + anc << " " << ans << endl; } int main (){ ios::sync_with_stdio(false); cin.tie(nullptr); //long long t = 1; long long t; cin >> t; for( ;t--; ) paveway(); return 0; }
You're as ugly and your solution.
You that kept telling people ChatGPT couldn't solve it
Meaning you couldn't even write a good prompt to solve it with AI
copy copy dev
|
turmacs(f): 6:56pm On Jun 14, 2024 |
Paystack:
You're as ugly and your solution.
You that kept telling people ChatGPT couldn't solve it
Meaning you couldn't even write a good prompt to solve it with AI
copy copy dev
I don't blame your father... When it comes to anything that has to do with programming, math, logical thinking or problem solving in general, please leave it for people like us because me and you no be mate for this thing normally. You can stick to what your brain can carry, frontend,back-end, react, etc.... I don't code for daily bread like most of you, I code for fun, ion and for my love of math. Have a nice life.
|
Paystack(f): 6:59pm On Jun 14, 2024 |
turmacs:
I don't blame your father... When it comes to anything that has to do with programming, math, logical thinking or problem solving in general, please leave it for people like us because me and you no be mate for this thing normally. You can stick to what your brain can carry, frontend,back-end, react, etc.... I don't code for daily bread like most of you, I code for fun, ion and for my love of math.
See your head like fun
You think people that spend their daily lives coding professional task and creating solutions each day are your mates?
Fooolish girl.
Fun kpai u there
|
turmacs(f): 7:01pm On Jun 14, 2024 |
Paystack:
See your head like fun
You think people that spend their daily lives coding professional task and creating solutions each day are your mates?
Fooolish girl.
Fun kpai u there
Chai, I can feel the pain in your comment  Pain kpai u there.
|
Paystack(f): 7:33pm On Jun 14, 2024 |
[s][/s]
turmacs:
Chai, I can feel the pain in your comment Pain kpai u there.
😏
See your strong body like man
|
ICTspecialist(m): 10:02am On Jun 16, 2024 |
Paystack:
See your head like fun
You think people that spend their daily lives coding professional task and creating solutions each day are your mates?
Fooolish girl.
Fun kpai u there
turmacs is a troll, a male and a scammer behind that moniker.
He scammed someone in the crypto thread and he's being hunted as we speak.
Go through his post history you'll realize he isn't worth the attention
2 Likes |
ICTspecialist(m): 10:06am On Jun 16, 2024 |
MindHacker9009:
Software Engineers on NL will not waste their valuable time on such a tasks that lack commercial viability. Such tasks you posted are typically more suited for university mathematics students who are learning to apply programming to solve their mathematical exercises.
Here is an example of what Software Engineers on NL will spend their valuable time on:
Implement a piece of online software suitable for use by a cinema. The system should be
capable of providing information about films currently showing, and of the availability
of seats in the cinema. The system should allow for seats to be booked either
individually or as a block. For example a block of 3 seats would require 3 adjacent
seats to be booked together.
you're quoting a troll bro.
Check through it's post history and you'll realize it isn't worth the attention
2 Likes |
MindHacker9009(m): 10:56am On Jun 16, 2024 |
ICTspecialist:
you're quoting a troll bro.
Check through it's post history and you'll realize it isn't worth the attention
Thanks bro, for exposing the troll.
|
Xinjin: 8:50am On Jun 18, 2024 |
airsaylongcome:
OP, you know that there's AI that can write fully functional code that solves this. I Just threw it at my "weak" self hosted LLM and it has churned out Python and C++ code that look workable
What do you mean by this line "weak" self hosted LLM
|
tosinhtml: 4:37pm On Jun 18, 2024 |
ICTspecialist:
turmacs is a troll, a male and a scammer behind that moniker.
He scammed someone in the crypto thread and he's being hunted as we speak.
Go through his post history you'll realize he isn't worth the attention
She has a female "F" sign on her name and also a profile picture, are you saying this person's whole identity is fake?
|