結果

問題 No.374 コイン
ユーザー mudbdb
提出日時 2016-06-05 15:15:28
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 172 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 19,968 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-07 22:43:18
合計ジャッジ時間 1,075 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |   scanf("%u", &A);
      |   ^~~~~~~~~~~~~~~
main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |   scanf("%u", &B);
      |   ^~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main()
{
  unsigned int A,B;
  scanf("%u", &A);
  scanf("%u", &B);
  if (A < B) {
    printf("K\n");
  } else {
    printf("S\n");
  }
  return 0;
}
0