Skip to content

Instantly share code, notes, and snippets.

@suppy
suppy / yukicoder1642.c
Created October 20, 2021 02:54
No.1642 Registration
#include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
if(n < 10){
printf("00%d\n", n);
}
@suppy
suppy / yukicoder1656.c
Created October 20, 2021 02:45
No.1656 Recuperation
#include <stdio.h>
int main(void) {
int t, a, b;
int i;
scanf("%d", &t);
for(i = 0;i < t;i++){
scanf("%d%d", &a, &b);
@suppy
suppy / yukicoder1663.c
Created October 20, 2021 02:37
No.1663 Maximum Remainder
#include <stdio.h>
int main(void) {
int a, b, c, d, m;
int x, y;
int i;
int m_max = 0;
scanf("%d%d%d%d%d", &a, &b, &c, &d, &m);
@suppy
suppy / yukicoder1672.c
Created October 20, 2021 02:17
No.1672 404 Not Found
#include <stdio.h>
int main(void) {
int s;
scanf("%d", &s);
if(s / 100 == 4 || s / 100 == 5){
printf("Yes\n");
}
else{
@suppy
suppy / yukicoder1686.c
Created October 20, 2021 02:12
No.1686 Geschenkt
#include <stdio.h>
int main(void) {
int i;
int n, a, cards[36] = {0};
int sum = 0;
scanf("%d", &n);
for(i = 0;i < n;i++){
scanf("%d", &a);
@suppy
suppy / yukicoder1699.c
Created October 20, 2021 01:51
No.1699 Unfair RPS
#include <stdio.h>
int main(void) {
int b, c;
scanf("%d%d", &b, &c);
if(b == c){
printf("Yes\n");
}
else{
printf("No\n");
@suppy
suppy / yukicoder1468.c
Created May 10, 2021 05:18
No.1468 Colourful Pastel
#include <stdio.h>
#include<string.h>
int main(void) {
int n;
int i;
char s[10];
int red1 = 0, orange1 = 0, yellow1 = 0, green1 = 0, cyan1 = 0, blue1 = 0, violet1 = 0;
int red2 = 0, orange2 = 0, yellow2 = 0, green2 = 0, cyan2 = 0, blue2 = 0, violet2 = 0;
@suppy
suppy / yukicoder1469.c
Created May 9, 2021 15:01
No.1469 programing
#include <stdio.h>
int main(void) {
char s[5000001];
int i;
scanf("%s", s);
i = 0;
while(s[i] != 0){
@suppy
suppy / yukicoder1486.c
Created May 9, 2021 14:48
No.1486 ロボット
#include <stdio.h>
int main(void) {
int a, b, c, d, e, f = 0;
int i;
scanf("%d%d%d%d%d", &a, &b, &c, &d, &e);
for(i = 0;i < (a + b) * (c + d);i++){
if(i % (a + b) < a && i % (c + d) < c){
@suppy
suppy / yukicoder1499.c
Created May 9, 2021 09:24
No.1499 羊が、何匹だっけ
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int t;
int n;
char s[20];
int i, j;