忘記密碼?

Blogs about: Acm

酷網誌

[ACM] 100 - The 3n + 1 problem

lancetw wrote 1 month ago: /* Title: 100 - The 3n + 1 problem * Purpose: http://uva.onlinejudge.org/external/1/100.pdf * Author … more →

標籤: 未分類

給 ACM 用的 Makefile

lancetw wrote 1 month ago: CC = gcc CFLAGS = -lm -lcrypt -O2 -pipe -ansi -DONLINE_JUDGE -Wall SOURCE_FILES = $(wildcard *.c) TA … more →

標籤: zerojudge

ACM #253 - Cube Painting

hoisee wrote 4 months ago: //Run Time: 0.008s 近來腦袋不甚靈光,想了頗久Orz 最後是直接拿了一顆骰子,一切就解決啦。 //好像有點犯規XD” #include <stdio.h> c … more →

標籤: Simulation, 25.3, Cube Painting

a005: Eva 的回家作業

lancetwacm wrote 5 months ago: #include <stdio.h> main() { int t; int a, b, c, d, e; while(scanf("%d\n", &t) != … more →

標籤: zerojudge

a004: 文文的求婚

lancetwacm wrote 5 months ago: #include <stdio.h> main() { int y; while(scanf("%d", &y) != EOF) { if(((y%4)==0 … more →

標籤: zerojudge

a003: 兩光法師占卜術

lancetwacm wrote 5 months ago: #include <stdio.h> #define s (m*2+d)%3 main() { int m, d; while(scanf("%d %d", & … more →

標籤: zerojudge

a002: 簡易加法

lancetwacm wrote 5 months ago: #include <stdio.h> main() { int i, j; while(scanf("%d %d", &i , &j) != EOF) … more →

標籤: zerojudge

UVA 10310 Dog and Gopher

andy0518 wrote 6 months ago: #include<cstdio> struct coordinate {   double x, y; }; double MSE(struct coordinate a, struct … more →

標籤: UVA

UVA 10305 Ordering Tasks

andy0518 wrote 6 months ago: #include<cstdio> #include<cstring> int main() {   int n, m;   int order[101][101], refed … more →

標籤: UVA, sort

UVA Summation of Polynomials

andy0518 wrote 6 months ago: #include<cstdio> int main() {   long long int x;   while(scanf(“%lld”,&x) != E … more →

標籤: UVA

UVA Soundex

andy0518 wrote 6 months ago: #include<cstdio> #include<cstring> int code[128]; void init() {   code['B'] = code['F'] … more →

標籤: UVA

UVA Is This Integration ?

andy0518 wrote 6 months ago: #include<cstdio> #include<cmath> const double PI = acos(-1); double B(double a) {   retu … more →

標籤: UVA

ACM #10912 - Simple Minded Hashing

hoisee wrote 1 year ago: //Run Time: 2.830s 一開始先暴搜,用陣列把全部結果存起來 之後就單純print就ok啦XD (DP解待研究…囧) #include <stdio.h> #de … more →

標籤: 10912, Simple Minded Hashing, 暴搜, recursion

ACM #378 - Intersecting Lines

hoisee wrote 1 year ago: //竟然是三星題(驚) 唯一要注意的是鉛直線。 (寫得頗亂,應該可以更精簡吧……) #include <stdio.h> int main() {     int … more →

標籤: , Intersecting Lines, Math

ACM #10099 - The Tourist Guide

hoisee wrote 1 year ago: 要記得每趟G先生都會在車上XD #include <stdio.h> int min(int, int); int main() {   int i, j, k;   int n, r, … more →

標籤: shortest path, floyd-warshall, The Tourist Guide,

ACM #574 - Sum It Up

hoisee wrote 1 year ago: 加個temp就可以輕鬆去掉重複的! //之前想了一堆亂七八糟的方法囧 #include <stdio.h> int t; int n; int sum; int flag; int cou … more →

標籤: DFS, sum it up, 574

ACM #10344 - 23 Out of 5

hoisee wrote 1 year ago: //程式碼看起來頗醜Orz Run time: 2.210  囧 #include <stdio.h> int num[5]; int v[5]; int ans; int check; … more →

標籤: 10344, DFS, 23 out of 5


Have your say. Start a blog.

See our free features →

相關標籤
全部 →

Follow this tag via RSS