結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
Irmystp
|
| 提出日時 | 2014-12-03 01:42:36 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 94 ms |
| コンパイル使用メモリ | 22,784 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-11 07:57:16 |
| 合計ジャッジ時間 | 637 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
ソースコード
#include <cstdio>
using namespace std;
int main(){
int N;
scanf("%d", &N);
if(N%2) printf("7");
else printf("1");
for(N /= 2; --N;) printf("1");
putchar('\n');
return 0;
}
Irmystp