結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2014-12-12 09:00:53 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 369 ms |
コンパイル使用メモリ | 32,988 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-11 20:55:42 |
合計ジャッジ時間 | 886 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf( "%d", &N ); | ~~~~~^~~~~~~~~~~~
ソースコード
#include<cstdio>#include<algorithm>#define rep(i,a) for(int i=0;i<(a);++i)int N;int main(){scanf( "%d", &N );if( N&1 )putchar('7'), N-=3;rep( i, N>>1 )putchar('1');puts("");return 0;}