結果
| 問題 | No.1298 OR XOR |
| コンテスト | |
| ユーザー |
nok0
|
| 提出日時 | 2020-10-19 12:38:55 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 961µs | |
| コード長 | 124 bytes |
| 記録 | |
| コンパイル時間 | 435 ms |
| コンパイル使用メモリ | 81,280 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-11-16 21:06:14 |
| 合計ジャッジ時間 | 1,952 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 |
コンパイルメッセージ
main.cpp:2:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | int n;main(){scanf("%d",&n);if(n==(n&-n))printf("-1 -1 -1\n");else printf("%d %d %d\n",n,n&-n, n&-n^n);}
| ^~~~
ソースコード
#include <iostream>
int n;main(){scanf("%d",&n);if(n==(n&-n))printf("-1 -1 -1\n");else printf("%d %d %d\n",n,n&-n, n&-n^n);}
nok0