Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Algorithms06 { class Program { static void Main(string[] args) { int n = 5, k = 5; int[] sumA = new int[n]; int[] sumB = new int[k]; int[] sumC = new int[2]; int[,] tab = new int[n, k]; Random rnd = new Random(); for(int i=0; i
max) { max = sumA[i]; maxString = "x" + (i+1); if (sumB[i] > max) { max = sumB[i]; maxString = "y" + (i+1); } } } if(n==k) { for (int i = 0; i < 2; i++) { if (sumC[i] > max) { max = sumC[i]; maxString = "z" + (i + 1); } } } Console.WriteLine($"Wynik: {maxString} = {max}"); Console.ReadLine(); } } }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)