結果

問題 No.201 yukicoderじゃんけん
コンテスト
ユーザー kentahama
提出日時 2015-05-03 23:47:54
言語 C90
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
WA  
実行時間 -
コード長 278 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 101 ms
コンパイル使用メモリ 28,360 KB
最終ジャッジ日時 2026-02-23 18:19:36
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:13:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   13 |   scanf("%s %s %*s %s %s %*s", SA, PA, SB, PB);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #
raw source code

#include <stdio.h>
#include <string.h>

char SA[101];
char SB[101];

char PA[10001];
char PB[10001];

int main(void) {
  int order;

  scanf("%s %s %*s %s %s %*s", SA, PA, SB, PB);
  order = strcmp(PA, PB);
  printf("%s", order > 0 ? SA : order < 0 ? SB : "-1");

  return 0;
}
0