This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = int(input()) | |
cards_list = [] | |
for i in range(n): | |
cards = input() | |
cards_list.append(cards) | |
result_list = [] | |
for cards in cards_list: | |
cards = cards.split() | |
sum = 0 | |
n = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size = [int(x) for x in input().split('x')] | |
table = [[0] * size[1] for row in range(size[0])] | |
bombs = [] | |
for i in range(int(input())): | |
bomb = [int(x) for x in input().split(',')] | |
bombs.append(bomb) | |
for bomb in bombs: | |
table[bomb[0]][bomb[1]] = '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct item { | |
char name[20]; | |
float price; | |
int pcs; | |
} Item; | |
typedef struct stock { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package my.iampeach.mystepcounter | |
import android.content.Context | |
import android.hardware.Sensor | |
import android.hardware.SensorEvent | |
import android.hardware.SensorEventListener | |
import android.hardware.SensorManager | |
import androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import android.widget.Toast |