結果
| 問題 |
No.102 トランプを奪え
|
| コンテスト | |
| ユーザー |
Ysmr_Ry
|
| 提出日時 | 2014-12-20 10:18:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 165 bytes |
| コンパイル時間 | 334 ms |
| コンパイル使用メモリ | 21,888 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-12 02:21:42 |
| 合計ジャッジ時間 | 1,007 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 WA * 3 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf( "%d", &N ), s ^= N;
| ~~~~~^~~~~~~~~~~~
ソースコード
#include<cstdio>
#define rep(i,a) for(int i=0;i<(a);++i)
int s, N;
int main()
{
rep( i, 4 )
scanf( "%d", &N ), s ^= N;
puts( s?"Taro":"Jiro" );
return 0;
}
Ysmr_Ry