結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
spacenaut
|
| 提出日時 | 2016-05-14 13:10:59 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 232 bytes |
| コンパイル時間 | 122 ms |
| コンパイル使用メモリ | 20,096 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-06 02:23:59 |
| 合計ジャッジ時間 | 590 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d %d", &N, &K);
| ^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
int N, K;
scanf("%d %d", &N, &K);
switch(N - K){
case 0: printf("Drew\n"); break;
case 1:
case -2: printf("Lost\n"); break;
case 2:
case -1: printf("Won\n"); break;
}
return 0;
}
spacenaut