結果
問題 | No.1841 Long Long |
ユーザー | Digwee_kkkn |
提出日時 | 2022-02-18 22:02:07 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,278 bytes |
コンパイル時間 | 1,467 ms |
コンパイル使用メモリ | 163,496 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-11 19:08:46 |
合計ジャッジ時間 | 2,350 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,376 KB |
testcase_01 | AC | 1 ms
4,376 KB |
testcase_02 | AC | 2 ms
4,380 KB |
testcase_03 | AC | 2 ms
4,376 KB |
testcase_04 | AC | 2 ms
4,380 KB |
testcase_05 | AC | 2 ms
4,380 KB |
testcase_06 | AC | 2 ms
4,380 KB |
testcase_07 | AC | 2 ms
4,380 KB |
testcase_08 | AC | 1 ms
4,376 KB |
testcase_09 | AC | 1 ms
4,380 KB |
testcase_10 | AC | 1 ms
4,380 KB |
testcase_11 | AC | 2 ms
4,376 KB |
testcase_12 | AC | 2 ms
4,376 KB |
testcase_13 | AC | 2 ms
4,380 KB |
testcase_14 | AC | 2 ms
4,384 KB |
ソースコード
#include<bits/stdc++.h> #include <algorithm> #define _USE_MATH_DEFINES using namespace std; typedef pair<int,int> P; typedef double db; typedef long long ll; typedef float fl; typedef bool bl; typedef string st; typedef int itn; const int INF=1000000; /*π*/double PI=3.141592653589;ll MOD=1000000007; int dx[4]={1,0,-1,0} , dy[4]={0,1,0,-1}; int DX[8]={0,-1,-1,-1,0,1,1,1} , DY[8]={1,1,0,-1,-1,-1,0,1}; string fi="01234567890123456789"; string al="abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"; string AL="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"; int fact(ll i){return i ? fact(i-1)*i:1;}; #define YesNo(flag) if(flag){cout<<"Yes"<<endl;}else{cout<<"No"<<endl;} #define rep(i,n) for(int i=0;i<(n);++i) #define cl(s) s-='a'-'A'; //一文字ではないと認識しない error; #define sl(s) s+='a'-'A'; // g++ -o atcoder atcoder.cpp int main(){ int n; cin>>n; rep(i,n){ cout<<"Long"; } } // 文字列sの数値変換の例 int n=atoi(s.c_str()) <=> s=to_string(n) // char数値変換 int n=c-'0' // substrは長さnの文字列s、s.substr(配列の要素(0も含む),文字数); // 配列の総和 accumulate(a,a+n,足されていく初期値(0でいい)); // 配列の中にそれがどれだけあるか count(a,a+n,2('a'));