林尚廷
No Code No Life :: A competitive programmer
program HelloWorld;
uses crt;
begin
writeln('Hello, World!');
readkey;
end.
items = [ 'Hello', 'World']
for it in items
print it, " "
end
print "\n"
#include<iostream>
main(){
std::cout << "Hello, World!" << std::endl;
}
for(var i=0;i<10;i++){
console.log(i)
}
let a = 87
console.log('Hello, World ' + a)
public class Hello
{
public static void main(String[] args)
{
System.out.println("hello world!");
}
}
package main
import "fmt"
func main() {
fmt.Println("hello world")
var b, c int = 1, 2
fmt.Println(b, c)
}
a = 87
print('Hello World!' + str(a))
for i in range(10):
print(i)
$txt = "World";
echo "Hello $txt!";
for ($x = 0; $x <= 10; $x++) {
echo "number: $x <br>";
}
++++++++++[>+++++++>++++++++++>+++>+<<<<-]
>++.>+.+++++++..+++.>++.<<+++++++++++++++.
>.+++.------.--------.>+.>.
using System;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Private Sub Command1_Click()
If 1 + 1 = 2 Xor 1 + 1 <> 11 Then
MsgBox "OuO"
Else
MsgBox "QQ"
End If
End Sub
pts :: Int -> Int
pts 1 = 10
pts 2 = 6
pts x
| x <= 6 = 7 - x
| otherwise = 0
(||) :: Bool -> Bool -> Bool
True || _ = True
False || y = y
#include <iostream>
using namespace std;
const int goal = 5487;
int main(){
int ub = 7122, lb = 0;
int cnt = 0;
while(ub-lb > 1){
int mid = (ub + lb) >> 1;
cnt++;
if(mid < goal) lb = mid;
else ub = mid;
}
cout << cnt << endl;
}
By 林尚廷
社團博覽會問答