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
#include
#include
int main() { int broj; scanf("%d ", &broj); int n, m, i, j; scanf("%d%d", &n, &m); int matrica[n][m]; for(i = 0; i < n; i++){ for(j = 0; j < m; j++){ scanf("%d ", &matrica[i][j]); } } for(i = 0; i < n; i++){ int zbir = 0; for(j = 0; j < m; j++){ zbir += matrica[i][j]; } if(zbir < broj){ for(j = 0; j < m; j++){ printf("-1 "); } } else if(zbir > broj){ for(j = 0; j < m; j++){ printf("1 "); } } else{ for(j = 0; j < m; j++){ printf("0 "); } } printf("\n"); } return 0; }
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)