Game-Theoretic Learning and Distributed Optimization in Memoryless Multi-Agent Systems