結果
| 問題 |
No.524 コインゲーム
|
| ユーザー |
|
| 提出日時 | 2020-02-29 06:39:45 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 138 bytes |
| コンパイル時間 | 450 ms |
| コンパイル使用メモリ | 63,232 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 19:48:33 |
| 合計ジャッジ時間 | 1,583 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main()
| ^~~~
ソースコード
#include<iostream>
using namespace std;
long N;
main()
{
cin>>N;
long s=0;
for(long i=N/4*4;i<=N;i++)s^=i;
cout<<(s?"O":"X")<<endl;
}