結果
問題 | No.264 じゃんけん |
ユーザー |
![]() |
提出日時 | 2015-09-03 17:57:53 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 220 bytes |
コンパイル時間 | 1,200 ms |
コンパイル使用メモリ | 160,260 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 21:54:56 |
合計ジャッジ時間 | 1,648 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:15:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%d %d", &n, &k); | ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include <bits/stdc++.h> using namespace std; int t[3][3] = { {2, 0, 1}, {1, 2, 0}, {0, 1, 2} }; string s[] = {"Won", "Lost", "Drew"}; int main() { int n, k; scanf("%d %d", &n, &k); cout << s[t[n][k]] << endl; }