본문 바로가기

728x90

Job Wanted/코테

(6)
[백준] 2558번 - A+B - 2 (C#) https://www.acmicpc.net/problem/2558  using System;public class Acmicpc02558{ public static void Main(string[] args) { var i = int.Parse(Console.ReadLine()); var j = int.Parse(Console.ReadLine()); Console.WriteLine($"{(int)i + (int)j}"); }}
[백준] 2440번 - 별 찍기 - 3 (C#) https://www.acmicpc.net/problem/2440   using System;using System.Collections.Generic;public class Acmicpc02440{ public static void Main(string[] args) { int i = int.Parse(Console.ReadLine()); for (int j=i; j>0; j--) { for (int k=0; k
[백준] 2475번 - 검증수 (C#) https://www.acmicpc.net/problem/2475   using System;using System.Collections.Generic;public class Acmicpc02475{ public static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int sum = 0; foreach (string i in input) { sum += (int)Math.Pow(int.Parse(i), 2); } Console.Write(sum%10); }}
[백준] 10952번 - A+B - 5 (C#) https://www.acmicpc.net/problem/10952 using System;using System.Collections.Generic;public class Acmicpc1952{ public static void Main(string[] args) { while(true) { string input = Console.ReadLine(); int i1 = int.Parse(input.Split()[0]); int i2 = int.Parse(input.Split()[1]); if (i1 == 0) { if (i2 == 0) ..
[백준] 10871번 - X보다 작은 수 (C#) https://www.acmicpc.net/problem/10871  using System;using System.Collections.Generic;public class Acmicpc10871{ public static void Main(string[] args) { string input = Console.ReadLine(); string input2 = Console.ReadLine(); string[] inputArr = input.Split(); int i1 = int.Parse(inputArr[0]); int i2 = int.Parse(inputArr[1]); /..
[SWEA] 1234. [S/W 문제해결 기본] 10일차 - 비밀번호 . T = 10 output = '' for test_case in range(1, T + 1): answer = '' z = input() a = int(z.split()[0]) b = z.split()[1] # a,b = input().split() tempList = [] idx = 0 for i in range(len(b)): tempList.append(b[i]) while (True): if tempList[idx] == tempList[idx+1]: del (tempList[idx: idx + 2]) a -= 2 idx -= 2 # continue idx += 1 if idx == a-1: break for i in range(a): answer += str(tempList[i]) outpu..

728x90
반응형