結果
| 問題 | No.264 じゃんけん |
| コンテスト | |
| ユーザー |
spacenaut
|
| 提出日時 | 2016-05-14 13:10:59 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 147 ms |
| コンパイル使用メモリ | 27,972 KB |
| 最終ジャッジ日時 | 2026-02-23 21:17:19 |
|
ジャッジサーバーID (参考情報) |
judge1 / 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