結果
問題 | No.83 最大マッチング |
ユーザー |
|
提出日時 | 2016-09-03 17:24:45 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 5,000 ms |
コード長 | 244 bytes |
コンパイル時間 | 400 ms |
コンパイル使用メモリ | 53,880 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-15 19:04:05 |
合計ジャッジ時間 | 940 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 3 | main(){ | ^~~~
ソースコード
#include<iostream> using namespace std; main(){ int n; cin >> n; if( n % 2 == 1 ){ cout << 7; n -= 3; } while(n){ cout << 1; n -= 2; } cout << endl; } /*------- N=2n -> 1111.....11 N=2n+1 -> 7111.....11 -------*/