結果
問題 | No.102 トランプを奪え |
ユーザー |
![]() |
提出日時 | 2014-12-20 10:37:53 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 167 bytes |
コンパイル時間 | 384 ms |
コンパイル使用メモリ | 21,888 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 02:22:02 |
合計ジャッジ時間 | 1,069 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
コンパイルメッセージ
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&3; | ~~~~~^~~~~~~~~~~~
ソースコード
#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&3;puts( s?"Taro":"Jiro" );return 0;}