結果
問題 | No.264 じゃんけん |
ユーザー |
![]() |
提出日時 | 2016-10-19 23:48:16 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 195 bytes |
コンパイル時間 | 108 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-23 05:39:19 |
合計ジャッジ時間 | 664 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
コンパイルメッセージ
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", "Lost", "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; }