提出 #76596729


ソースコード 拡げる

#include <stdio.h>

int main(void)
{
  int n;
  scanf("%d", &n);
  for(int i=1; i<=n; i++)
  {
    if(i%3==0) printf("x");
    else printf("o");
  }
  printf("\n");
  return 0;
}

提出情報

提出日時
問題 A - Penalty Kick
ユーザ kodukikohaku
言語 C23 (GCC 14.2.0)
得点 100
コード長 191 Byte
結果 AC
実行時間 1 ms
メモリ 1736 KiB

コンパイルエラー

Main.c: In function ‘main’:
Main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |   scanf("%d", &n);
      |   ^~~~~~~~~~~~~~~

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 15
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt
All 00_sample_00.txt, 00_sample_01.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 02_hand_00.txt, 02_hand_01.txt, 02_hand_02.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 1 ms 1580 KiB
00_sample_01.txt AC 1 ms 1620 KiB
01_random_00.txt AC 1 ms 1600 KiB
01_random_01.txt AC 0 ms 1736 KiB
01_random_02.txt AC 0 ms 1580 KiB
01_random_03.txt AC 0 ms 1600 KiB
01_random_04.txt AC 1 ms 1656 KiB
01_random_05.txt AC 1 ms 1580 KiB
01_random_06.txt AC 0 ms 1736 KiB
01_random_07.txt AC 0 ms 1664 KiB
01_random_08.txt AC 1 ms 1736 KiB
01_random_09.txt AC 0 ms 1676 KiB
02_hand_00.txt AC 1 ms 1580 KiB
02_hand_01.txt AC 0 ms 1600 KiB
02_hand_02.txt AC 0 ms 1620 KiB