結果
問題 | No.83 最大マッチング |
ユーザー |
|
提出日時 | 2020-04-09 18:41:20 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 217 bytes |
コンパイル時間 | 148 ms |
コンパイル使用メモリ | 22,912 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 16:26:06 |
合計ジャッジ時間 | 774 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d",&N); | ~~~~~^~~~~~~~~
ソースコード
#include <cstdio> int main(){ int N; scanf("%d",&N); if(N%2==1){ printf("7"); for(int i=3;i<N;i+=2)printf("1"); }else for(int i=0;i<N;i+=2)printf("1"); printf("\n"); return 0; }