結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
つなぎ
|
| 提出日時 | 2016-03-30 13:46:50 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 186 bytes |
| コンパイル時間 | 142 ms |
| コンパイル使用メモリ | 20,992 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-02 08:08:48 |
| 合計ジャッジ時間 | 1,689 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 9 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘short int *’ [-Wformat=]
5 | scanf("%d %d",&aa,&ab);
| ~^ ~~~
| | |
| int * short int *
| %hd
main.c:5:12: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘short int *’ [-Wformat=]
5 | scanf("%d %d",&aa,&ab);
| ~^ ~~~
| | |
| int * short int *
| %hd
main.c:5:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d %d",&aa,&ab);
| ^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void) {
short aa=0;
short ab=0;
scanf("%d %d",&aa,&ab);
if(aa==ab)printf("Drew");
if((aa+1)%3==ab)printf("Won");
if((ab+1)%3==aa) printf("Lost");
return 0;
}
つなぎ