結果
| 問題 |
No.3108 Luke or Bishop
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-28 23:47:07 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 104 bytes |
| コンパイル時間 | 2,191 ms |
| コンパイル使用メモリ | 191,656 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-05-28 23:47:10 |
| 合計ジャッジ時間 | 3,076 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
2 | main(){int a,b;std::cin>>a>>b;std::cout<<1+(a&&b&&abs(a)-abs(b))-((!a)&&(!b));}
| ^~~~
ソースコード
#include <bits/stdc++.h>
main(){int a,b;std::cin>>a>>b;std::cout<<1+(a&&b&&abs(a)-abs(b))-((!a)&&(!b));}