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
#include
#include
#define TOPRAN 100000000 #define MAXLEN 1000 #define STRLEN 64 #define ITR 1000000 void main(void) { int i,j,len,freq[MAXLEN],bin[MAXLEN],check=1,dx,x; char input[STRLEN]; printf("Quanti bin vuoi che usi? "); do { printf("Inserisci un numero minore di %d e maggiore di 0.\n",MAXLEN); scanf("%s",input); len=atoi(input); if((len>MAXLEN)||(len<=0)) { printf("Input non valido. "); } else check=0; } while(check==1); dx=TOPRAN/len; for(i=0;i
TOPRAN); j=0; do { if(x>bin[j]) { j++; //printf("vado avanti\n"); } else { freq[j-1]++; j=len; //printf("beccato\n"); } } while(j
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)