結果
問題 |
No.1346 Rectangle
|
ユーザー |
|
提出日時 | 2021-01-13 19:00:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 2,018 ms |
コンパイル使用メモリ | 191,476 KB |
最終ジャッジ日時 | 2025-01-17 17:30:27 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 17 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ long long n;cin>>n; assert(n>=2&&n<=1000000000000000000); if(n==2)cout<<"INF"<<endl; else if(n<=4)cout<<6<<endl; else if(n<=6)cout<<4<<endl; else cout<<2<<endl; }