結果
問題 | No.201 yukicoderじゃんけん |
ユーザー | suppy193 |
提出日時 | 2015-05-27 11:43:50 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 345 bytes |
コンパイル時間 | 377 ms |
コンパイル使用メモリ | 23,056 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-20 15:32:59 |
合計ジャッジ時間 | 3,172 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 0 ms
4,376 KB |
testcase_02 | WA | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | AC | 1 ms
4,376 KB |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | AC | 1 ms
4,376 KB |
testcase_15 | RE | - |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | RE | - |
コンパイルメッセージ
main.c: In function ‘main’: main.c:10:2: warning: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Wimplicit-function-declaration] gets(str); ^~~~ fgets /tmp/cc3SokpQ.o: In function `main': main.c:(.text.startup+0x12): warning: the `gets' function is dangerous and should not be used.
ソースコード
#include <stdio.h> int main(void) { char str[200]; char sa[101], sb[101]; long long int pa, pb; char xa, xb; gets(str); sscanf(str, "%s%lld%c", sa, &pa, &xa); gets(str); sscanf("%s%lld%c", sb, &pb, &xb); //printf("%lld\n", pa); if(pa > pb)printf("%s\n", sa); else if(pa < pb)printf("%s\n", sb); else printf("-1\n"); return 0; }