結果
問題 |
No.264 じゃんけん
|
ユーザー |
![]() |
提出日時 | 2016-10-19 23:47:52 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 195 bytes |
コンパイル時間 | 141 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-23 05:39:15 |
合計ジャッジ時間 | 808 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 3 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:7:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d%d",&n,&k); | ^~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ int n, k; char a[3][5] = {"Won", "Lose", "Drew"}; int b[3][3] = {{2,0,1},{1,2,0},{0,1,2}}; scanf("%d%d",&n,&k); printf("%s\n",a[b[n][k]]); return 0; }