본문 바로가기

반응형

창고/Backup_2013_0121

(226)
Advanced Dungeons & Dragons: Treasure of Tarmin ( 1983 ) roms; emuls:
Advanced Dungeons & Dragons: Cloudy Mountain roms: emul: emul site: http://www.intellivisionworld.com/english/Download/List.asp?iwCat=1
Q6 using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace EulerProject { class Program { static void question() { /* 1 부터 100까지의 수의 제곱의 합과 합의 제곱의 차 */ /* 위의 식을 정리하면 (1~100수)*(1~100합-1~100수) */ int Answer = 0; for (int i = 1; i
Q5 using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace EulerProject { class Program { static void question() { /* 1부터 20까지의 수로 모두 나누어 떨어지는 가장작은수는? */ /* 즉 1~20의 최소공배수 */ double i = 1; double Answer = 1; while( i < 21 ) { if( Answer % i != 0 ) Answer *= getPrimeFactors(i); i++; } Console.WriteLine("Q5 {0} ", Answer); } static void Main(string[] args..
Q4 using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace EulerProject { class Program { static void question() { /* 두개의 3자리 수의 곱으로 이루어진 가장큰 대칭수를 구하여라 */ /* 대칭수 -- 양쪽으로 읽어도 같은수 ex) 9009 */ /* 3자리의 수 곱 생성하여 체크 */ int digit3_1 = 999; int digit3_2 = 999; bool isAnswer = false; int Answer = 0; while (digit3_1 > 99) { while (digit3_2 > 99) { isAnswer = chk..
Q3 using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace EulerProject { class Program { static void question() { /* 600851475143의 가장 큰 소인수를 구하라 */ const double targetNumber = 600851475143; double tempFactor1 = targetNumber; double tempFactor2 = getPrimeFactors(tempFactor1); ArrayList al = new ArrayList(); while (true) { al.Add(tempFactor2); if (tempF..
특수문자로 이루어진 파일 삭제하기 http://goldbox.egloos.com/2074599 즉 i node 번호로 삭제하는 것임 1. ls -i 로 해당 파일의 inode 를 확인 2. 1에서 찾은 inode 로 find . -inum {1의inode} -exec rm {} \;
Q2 using System; using System.Collections.Generic; using System.Text; namespace EulerProject { class Program { static void question() { /* 4백만을 초과하지 않는 피보나치 수열에서 짝수인 수를 모두 더하라 */ Fibonacci fi = new Fibonacci(); double result = 0; while (true) { double currNumber = fi.getNext(); if (currNumber % 2 == 0) { if (currNumber > 4000000) break; else result += currNumber; } } Console.WriteLine("Q2: {0}", re..

반응형