結果
問題 | No.692 square1001 and Permutation 1 |
ユーザー |
![]() |
提出日時 | 2018-07-12 00:04:33 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 979 bytes |
コンパイル時間 | 1,253 ms |
コンパイル使用メモリ | 158,616 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 04:19:50 |
合計ジャッジ時間 | 1,770 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
#include "bits/stdc++.h"using namespace std;typedef long long lint;#define repi(i,a,b) for(lint i=(a), i##_len=(b); i<i##_len; ++i)#define rep(i,n) repi(i,0,n)#define all(x) (x).begin(),(x).end()#define tsort(v) sort((v).begin(), (v).end())#define trev(v) tsort(v); reverse((v).begin(), (v).end())#define siz(v) ((int)(v).size())#define ers(v, n) (v).erase((v).begin() + n)#define cnt(v, n) count(all(v), n)#define el "\n"#define co(x) cout<<(x)<<el#define coc(c, a, b) if(c)co((a));else co((b))#define YES(c) coc(c,"YES", "NO")#define Yes(c) coc(c,"Yes", "No")#define yes(c) coc(c,"yes", "no")#ifdef tqktmp_1#define gc() getchar(); getchar()#else#define gc() 1#endiftemplate<class T>bool chmax(T &a, const T &b) { if (a<b) { a = b; return 1; } return 0; }template<class T>bool chmin(T &a, const T &b) { if (b<a) { a = b; return 1; } return 0; }int main() {cin.tie(0);ios::sync_with_stdio(0);lint n;cin>>n;coc(n==1, "square1001", "Petr");}