Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
nomer6
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
var a,b,c,d,e,f,t,n,a1,b1,r:extended; begin Assign(input,'input.txt'); Reset(input); Assign(output,'output.txt'); Rewrite(output); read(a,b);a1:=a; b1:=b; f:=b+a; f:=f/2; f:=f*(b-a+1); while trunc(a) mod 3<>0 do a:=a+1; while trunc(b) mod 3<>0 do b:=b-1; c:=trunc(b-a) div 3+1; d:=(b+a)/ 2; c:=c*d; a:=a1; b:=b1; d:=0; while trunc(a) mod 2<>0 do a:=a+1; while trunc(b) mod 2<>0 do b:=b-1; t:=trunc(b-a) div 2+1; d:=(b+a)/ 2; t:=t*d; a:=a1; b:=b1; d:=0; while trunc(a) mod 6<>0 do a:=a+1; while trunc(b) mod 6<>0 do b:=b-1; n:=trunc(b-a) div 6+1; d:=(b+a)/ 2; n:=n*d; write(trunc(f-c-t+n)); end.
Show compiler warnings
[
+
]
Show input
Compilation time: 0.12 sec, absolute running time: 0.14 sec, cpu time: 0 sec, memory peak: 3 Mb, absolute service time: 0,35 sec
edit mode
|
history
|
discussion
Error(s):
Runtime error 2 at $0000000000400239 $0000000000400239 $000000000040018C