Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Partition
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
#include <stdio.h> #define max 3571 // max 3571 int main () { unsigned long long ray [max+1][max+1]; int i,j; j = 0; for (i = 0; i <= max; i++) { ray[i][j] = 1; } j = 1; for (i = 0; i <= max; i++) { ray[i][j] = 1; } i = 0; for (j = 1; j <= max; j++) { ray[i][j]=1; } i = 1; for (j = 1; j <= max; j++) { ray[i][j]=1; } for (i = 2; i <= max; i++) { for (j = 2; j <= max; j++) { ray[i][j]=ray[i][j-1]; if ((i-j)>=0) {ray[i][j]+=ray[i-j][j];} } } printf("%llu\n", ray[max][max]); return 0; }
gcc
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
edit mode
|
history
|
discussion