結果
問題 | No.2140 Triangle |
ユーザー |
|
提出日時 | 2022-12-02 21:42:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 731 bytes |
コンパイル時間 | 3,834 ms |
コンパイル使用メモリ | 249,388 KB |
最終ジャッジ日時 | 2025-02-09 03:40:30 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 28 |
ソースコード
#include "bits/stdc++.h" #include "atcoder/all" using namespace std; using namespace atcoder; using lint=long long; using ll=lint; using namespace std; #define endl "\n" #define repp(i, m, n) for (int i = (int)m; i < (int)(n); i++) #define rep(i, n) for (int i = 0; i < (int)(n); i++) lint mod=998244353; #define vec vector #define All(x) x.begin(),x.end() #define pb push_back #define mp make_pair #define fi first #define se second #define str string lint inf64=1LL<<61; int inf32=1<<30; lint gcd(lint a, lint b){ if(a<b)return gcd(b,a); if(a%b==0)return b; return gcd(b, a%b); } using namespace std; using S=lint; S op(S l, S r){ return max(l,r); } S e(){ return 0; } int main(){ lint n; cin>>n; cout<<2*n-1; }