結果
| 問題 | No.1346 Rectangle |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-06 07:06:48 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 350 bytes |
| 記録 | |
| コンパイル時間 | 853 ms |
| コンパイル使用メモリ | 180,564 KB |
| 実行使用メモリ | 9,916 KB |
| 最終ジャッジ日時 | 2026-10-02 07:49:30 |
| 合計ジャッジ時間 | 2,527 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 WA * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
ll n;
cin >> n;
if(n == 2){
cout << "INF" << endl;
return 0;
}
if(n == 3 || n == 6){
cout << (6 ^ 3 ^ n) << endl;
return 0;
}
cout << max(2ll, 9 - n) << endl;
}